Skip to content

Commit

Permalink
perf tools: Remove extra '/' character in events file path
Browse files Browse the repository at this point in the history
The array debugfs_known_mountpoints[] will cause extra '/'
character output.
Remove it.

pre:
$ perf probe -l
/sys/kernel/debug//tracing/uprobe_events file does not exist -
please rebuild kernel with CONFIG_UPROBE_EVENTS.

post:
$ perf probe -l
/sys/kernel/debug/tracing/uprobe_events file does not exist -
please rebuild kernel with CONFIG_UPROBE_EVENTS.

Signed-off-by: Xia Kaixu <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jiri Olsa <[email protected]>
  • Loading branch information
Xia Kaixu authored and olsajiri committed Apr 30, 2014
1 parent 61d4290 commit 603940b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/lib/api/fs/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
char debugfs_mountpoint[PATH_MAX + 1] = "/sys/kernel/debug";

static const char * const debugfs_known_mountpoints[] = {
"/sys/kernel/debug/",
"/debug/",
"/sys/kernel/debug",
"/debug",
0,
};

Expand Down

0 comments on commit 603940b

Please sign in to comment.