[PATCH 1/6] perf-tools: make perf-probe -L display the absolute path of the dumped file

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Franck Bui-Huu
Date: Monday, December 20, 2010 - 7:18 am

From: Franck Bui-Huu <fbuihuu@gmail.com>

The actual file used by 'perf probe -L sched.c' is reported in the
ouput of the command.

But it's simply displayed as it has been given to the command (simply
sched.c) which is too ambiguous to be really usefull since several
sched.c files can be found into the same project and we also don't
know which search path has been used.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
---
 tools/perf/util/probe-event.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
index 558545e..6fa0403 100644
--- a/tools/perf/util/probe-event.c
+++ b/tools/perf/util/probe-event.c
@@ -381,7 +381,7 @@ int show_line_range(struct line_range *lr, const char *module)
 		fprintf(stdout, "<%s:%d>\n", lr->function,
 			lr->start - lr->offset);
 	else
-		fprintf(stdout, "<%s:%d>\n", lr->file, lr->start);
+		fprintf(stdout, "<%s:%d>\n", lr->path, lr->start);
 
 	fp = fopen(lr->path, "r");
 	if (fp == NULL) {
-- 
1.7.3.2

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

Messages in current thread:
[PATCH 0/6] Minor cleanups &amp; fixes for perf-probe(1), Franck Bui-Huu, (Mon Dec 20, 7:17 am)
[PATCH 1/6] perf-tools: make perf-probe -L display the abs ..., Franck Bui-Huu, (Mon Dec 20, 7:18 am)
Re: [PATCH 1/6] perf-tools: make perf-probe -L display the ..., Masami Hiramatsu, (Mon Dec 20, 10:30 pm)
Re: [PATCH 6/6] perf-probe: handle gracefully some stupid ..., Masami Hiramatsu, (Tue Dec 21, 6:10 am)
Re: [PATCH 0/6] Minor cleanups &amp; fixes for perf-probe(1), Masami Hiramatsu, (Tue Dec 21, 6:11 am)
Re: [PATCH 0/6] Minor cleanups &amp; fixes for perf-probe(1), Franck Bui-Huu, (Tue Dec 21, 11:01 am)
Re: [PATCH 0/6] Minor cleanups &amp; fixes for perf-probe(1), Arnaldo Carvalho de Melo, (Tue Dec 21, 2:05 pm)
[tip:perf/core] perf probe: Make -L display the absolute p ..., tip-bot for Franck B ..., (Wed Dec 22, 4:30 am)
[tip:perf/core] perf probe: Rewrite show_one_line() to mak ..., tip-bot for Franck B ..., (Wed Dec 22, 4:30 am)
[tip:perf/core] perf probe: Clean up redundant tests in sh ..., tip-bot for Franck B ..., (Wed Dec 22, 4:31 am)
[tip:perf/core] perf probe: Fix line range description sin ..., tip-bot for Franck B ..., (Wed Dec 22, 4:31 am)
[tip:perf/core] perf probe: Don't always consider EOF as a ..., tip-bot for Franck B ..., (Wed Dec 22, 4:31 am)
[tip:perf/core] perf probe: Handle gracefully some stupid ..., tip-bot for Franck B ..., (Wed Dec 22, 4:32 am)
Re: [tip:perf/core] perf probe: Don't always consider EOF ..., Arnaldo Carvalho de Melo, (Wed Dec 22, 7:43 am)
Re: [PATCH 0/6] Minor cleanups &amp; fixes for perf-probe(1), Masami Hiramatsu, (Thu Dec 23, 5:36 pm)
[tip:perf/core] perf probe: Fix wrong warning in __show_on ..., tip-bot for Franck B ..., (Sat Dec 25, 1:58 am)