aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/probe-event.c
diff options
context:
space:
mode:
authorFranck Bui-Huu <fbuihuu@gmail.com>2010-12-20 09:18:00 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-12-21 13:20:11 -0500
commit62c15fc49bd1b35d79b34ea96f132ab435e2215a (patch)
treec1a2478adef57e40940724c47ff5fdbfaf82ba31 /tools/perf/util/probe-event.c
parent0e43e5d222095ca2d1d825dd2e4fa158bdc4cc9b (diff)
perf probe: Make -L display the absolute path of the dumped file
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. Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> LKML-Reference: <1292854685-8230-2-git-send-email-fbuihuu@gmail.com> Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-event.c')
-rw-r--r--tools/perf/util/probe-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
index 089d78ecbdda..0163fc0d25aa 100644
--- a/tools/perf/util/probe-event.c
+++ b/tools/perf/util/probe-event.c
@@ -371,7 +371,7 @@ int show_line_range(struct line_range *lr, const char *module)
371 fprintf(stdout, "<%s:%d>\n", lr->function, 371 fprintf(stdout, "<%s:%d>\n", lr->function,
372 lr->start - lr->offset); 372 lr->start - lr->offset);
373 else 373 else
374 fprintf(stdout, "<%s:%d>\n", lr->file, lr->start); 374 fprintf(stdout, "<%s:%d>\n", lr->path, lr->start);
375 375
376 fp = fopen(lr->path, "r"); 376 fp = fopen(lr->path, "r");
377 if (fp == NULL) { 377 if (fp == NULL) {