]> Git Repo - linux.git/commitdiff
perf tools: Do not change lib/api/fs/debugfs directly
authorJiri Olsa <[email protected]>
Wed, 26 Aug 2015 13:46:45 +0000 (15:46 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 28 Aug 2015 17:53:53 +0000 (14:53 -0300)
The tracing_events_path is the variable we want to change via
--debugfs-dir option, not the debugfs_mountpoint.

Signed-off-by: Jiri Olsa <[email protected]>
Reviewed-by: Matt Fleming <[email protected]>
Cc: Raphael Beamonte <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/perf.c
tools/perf/util/util.c

index b857fcbd00cf291f9dc7d8473e36cdadeac81987..07dbff5c0e60ea10b0c330b194e234666b84f6c5 100644 (file)
@@ -231,7 +231,7 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
                        (*argc)--;
                } else if (!prefixcmp(cmd, CMD_DEBUGFS_DIR)) {
                        perf_debugfs_set_path(cmd + strlen(CMD_DEBUGFS_DIR));
-                       fprintf(stderr, "dir: %s\n", debugfs_mountpoint);
+                       fprintf(stderr, "dir: %s\n", tracing_path);
                        if (envchanged)
                                *envchanged = 1;
                } else if (!strcmp(cmd, "--list-cmds")) {
index d33c34196a5a9d2a38d773470b84621b794c100b..7acafb3c5592d60501561986b1812fb6b121f271 100644 (file)
@@ -439,7 +439,6 @@ const char *perf_debugfs_mount(const char *mountpoint)
 
 void perf_debugfs_set_path(const char *mntpt)
 {
-       snprintf(debugfs_mountpoint, strlen(debugfs_mountpoint), "%s", mntpt);
        set_tracing_events_path("tracing/", mntpt);
 }
 
This page took 0.066012 seconds and 4 git commands to generate.