Skip to content

Commit 789e465

Browse files
committed
tools lib api fs tracing_path: Make tracing_events_path private
Not anymore accessed outside this library, keep it private. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 7014e0e commit 789e465

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

tools/lib/api/fs/tracing_path.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
static char tracing_mnt[PATH_MAX] = "/sys/kernel/debug";
1717
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";
2019

2120
static void __tracing_path_set(const char *tracing, const char *mountpoint)
2221
{

tools/lib/api/fs/tracing_path.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#include <linux/types.h>
66
#include <dirent.h>
77

8-
extern char tracing_events_path[];
9-
108
DIR *tracing_events__opendir(void);
119

1210
void tracing_path_set(const char *mountpoint);

0 commit comments

Comments
 (0)