[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-wg1m07flfrg1rm06jjzie8si@git.kernel.org>
Date: Sat, 19 May 2018 04:43:14 -0700
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: jolsa@...nel.org, tglx@...utronix.de, namhyung@...nel.org,
wangnan0@...wei.com, hpa@...or.com, dsahern@...il.com,
acme@...hat.com, linux-kernel@...r.kernel.org,
adrian.hunter@...el.com, mingo@...nel.org
Subject: [tip:perf/core] tools lib api fs tracing_path: Make
tracing_events_path private
Commit-ID: 789e465058352122023e4fa7de8dcf5c513e0b0b
Gitweb: https://git.kernel.org/tip/789e465058352122023e4fa7de8dcf5c513e0b0b
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Thu, 17 May 2018 14:51:23 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Thu, 17 May 2018 14:51:23 -0300
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@...el.com>
Cc: David Ahern <dsahern@...il.com>
Cc: Jiri Olsa <jolsa@...nel.org>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Wang Nan <wangnan0@...wei.com>
Link: https://lkml.kernel.org/n/tip-wg1m07flfrg1rm06jjzie8si@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/lib/api/fs/tracing_path.c | 3 +--
tools/lib/api/fs/tracing_path.h | 2 --
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/tools/lib/api/fs/tracing_path.c b/tools/lib/api/fs/tracing_path.c
index 9b451af0721c..120037496f77 100644
--- a/tools/lib/api/fs/tracing_path.c
+++ b/tools/lib/api/fs/tracing_path.c
@@ -15,8 +15,7 @@
static char tracing_mnt[PATH_MAX] = "/sys/kernel/debug";
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)
{
diff --git a/tools/lib/api/fs/tracing_path.h b/tools/lib/api/fs/tracing_path.h
index 904d085b2ae7..a19136b086dc 100644
--- a/tools/lib/api/fs/tracing_path.h
+++ b/tools/lib/api/fs/tracing_path.h
@@ -5,8 +5,6 @@
#include <linux/types.h>
#include <dirent.h>
-extern char tracing_events_path[];
-
DIR *tracing_events__opendir(void);
void tracing_path_set(const char *mountpoint);
Powered by blists - more mailing lists