perf tools: Remove extra '/' character in events file path
PATCH 1/1 perf tools: Remove extra '/' character in events file path
In reply to a message not in the archiveThe 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]>
--- tools/lib/api/fs/debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/lib/api/fs/debugfs.c +2 -2
@@ -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 , };
Signature · 16 lines
1.8.5.5 . . _______________________________________________ kernel.openeuler mailing list [email protected] http://rnd-openeuler.huawei.com/mailman/listinfo/kernel.openeuler