tools lib api fs tracing_path: Make tracing_events_path private

Not anymore accessed outside this library, keep it private.

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-wg1m07flfrg1rm06jjzie8si@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 7014e0e3
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
static char tracing_mnt[PATH_MAX] = "/sys/kernel/debug"; static char tracing_mnt[PATH_MAX] = "/sys/kernel/debug";
static char tracing_path[PATH_MAX] = "/sys/kernel/debug/tracing"; static char tracing_path[PATH_MAX] = "/sys/kernel/debug/tracing";
char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events"; static char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events";
static void __tracing_path_set(const char *tracing, const char *mountpoint) static void __tracing_path_set(const char *tracing, const char *mountpoint)
{ {
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
#include <linux/types.h> #include <linux/types.h>
#include <dirent.h> #include <dirent.h>
extern char tracing_events_path[];
DIR *tracing_events__opendir(void); DIR *tracing_events__opendir(void);
void tracing_path_set(const char *mountpoint); void tracing_path_set(const char *mountpoint);
......
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