aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/api/fs/tracing_path.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2018-05-16 15:20:12 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-05-16 15:20:12 -0400
commit00a6270361c025bfaae1d70ef1b596d182e05e8a (patch)
treee5041987ecc7566cfbf75c0a3ab84d216d4f1f40 /tools/lib/api/fs/tracing_path.c
parentd01bd1ac920e98e2a64f6bb5adf907180e0aaac7 (diff)
tools lib api: The tracing_mnt variable doesn't need to be global
Its only used in the file it is defined, so just make it static. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-p5x29u6mq2ml3mtnbg9844ad@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
-rw-r--r--tools/lib/api/fs/tracing_path.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/lib/api/fs/tracing_path.c b/tools/lib/api/fs/tracing_path.c
index 7b7fd0b18551..4f8ec7d476b8 100644
--- a/tools/lib/api/fs/tracing_path.c
+++ b/tools/lib/api/fs/tracing_path.c
@@ -13,8 +13,7 @@
13 13
14#include "tracing_path.h" 14#include "tracing_path.h"
15 15
16 16static char tracing_mnt[PATH_MAX] = "/sys/kernel/debug";
17char tracing_mnt[PATH_MAX] = "/sys/kernel/debug";
18char tracing_path[PATH_MAX] = "/sys/kernel/debug/tracing"; 17char tracing_path[PATH_MAX] = "/sys/kernel/debug/tracing";
19char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events"; 18char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events";
20 19
@@ -129,7 +128,7 @@ int tracing_path__strerror_open_tp(int err, char *buf, size_t size,
129 snprintf(buf, size, 128 snprintf(buf, size,
130 "Error:\tNo permissions to read %s/%s\n" 129 "Error:\tNo permissions to read %s/%s\n"
131 "Hint:\tTry 'sudo mount -o remount,mode=755 %s'\n", 130 "Hint:\tTry 'sudo mount -o remount,mode=755 %s'\n",
132 tracing_events_path, filename, tracing_mnt); 131 tracing_events_path, filename, tracing_path_mount());
133 } 132 }
134 break; 133 break;
135 default: 134 default: