Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+1 -4
+1 -2
tools/lib/api/fs/tracing_path.c
··· 15 15 16 16 static char tracing_mnt[PATH_MAX] = "/sys/kernel/debug"; 17 17 static char tracing_path[PATH_MAX] = "/sys/kernel/debug/tracing"; 18 - char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events"; 19 - 18 + static char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events"; 20 19 21 20 static void __tracing_path_set(const char *tracing, const char *mountpoint) 22 21 {
-2
tools/lib/api/fs/tracing_path.h
··· 5 5 #include <linux/types.h> 6 6 #include <dirent.h> 7 7 8 - extern char tracing_events_path[]; 9 - 10 8 DIR *tracing_events__opendir(void); 11 9 12 10 void tracing_path_set(const char *mountpoint);