Commit d3d21c41 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

perf_counter: log full path names

Impact: fix perf-report output for /home mounted binaries, etc.

dentry_path() only provide path-names up to the mount root, which is
unsuited for out purpose, use d_path() instead.
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <20090409085524.601794134@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 1ccd1549
...@@ -2116,7 +2116,7 @@ static void perf_counter_mmap_event(struct perf_mmap_event *mmap_event) ...@@ -2116,7 +2116,7 @@ static void perf_counter_mmap_event(struct perf_mmap_event *mmap_event)
name = strncpy(tmp, "//enomem", sizeof(tmp)); name = strncpy(tmp, "//enomem", sizeof(tmp));
goto got_name; goto got_name;
} }
name = dentry_path(file->f_dentry, buf, PATH_MAX); name = d_path(&file->f_path, buf, PATH_MAX);
if (IS_ERR(name)) { if (IS_ERR(name)) {
name = strncpy(tmp, "//toolong", sizeof(tmp)); name = strncpy(tmp, "//toolong", sizeof(tmp));
goto got_name; goto got_name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment