Re: [PATCH v3] perf tools: Add symfs option for off-box analysis using specified tree

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David S. Ahern
Date: Tuesday, December 14, 2010 - 7:27 am

On 12/14/10 05:52, Arnaldo Carvalho de Melo wrote:

I was not aware of realpath. Simple change to symbol__init?



strace -e trace=open /tmp/build-perf/perf report -v --symfs /tmp/f14-mnt
-i /tmp/perf-cs.data

does not show any attempts to open a file not starting with the symfs path.

At the top of dso__synthesize_plt_symbols() is:
	snprintf(name, sizeof(name), "%s%s",
		 symbol_conf.symfs, self->long_name);
	fd = open(name, O_RDONLY);

so the open only gets the relative path.

David
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v3] perf tools: Add symfs option for off-box an ..., Arnaldo Carvalho de Melo, (Tue Dec 14, 5:24 am)
Re: [PATCH v3] perf tools: Add symfs option for off-box an ..., Arnaldo Carvalho de Melo, (Tue Dec 14, 5:52 am)
Re: [PATCH v3] perf tools: Add symfs option for off-box an ..., Arnaldo Carvalho de Melo, (Tue Dec 14, 7:06 am)
Re: [PATCH v3] perf tools: Add symfs option for off-box an ..., David S. Ahern, (Tue Dec 14, 7:27 am)
Re: [PATCH v3] perf tools: Add symfs option for off-box an ..., Arnaldo Carvalho de Melo, (Tue Dec 14, 7:35 am)
Re: [PATCH v3] perf tools: Add symfs option for off-box an ..., Arnaldo Carvalho de Melo, (Tue Dec 14, 7:39 am)
[tip:perf/core] perf symbols: Add symfs option for off-box ..., tip-bot for David Ahern, (Wed Dec 22, 4:29 am)