Skip to contentSkip to conversation

perf tools: Use api/fs/tracing_path.h where needed

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Apr 20, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  20a9ed280dde6292c529dfdaaf9ce743ef71bb1f
Gitweb:     http://git.kernel.org/tip/20a9ed280dde6292c529dfdaaf9ce743ef71bb1f
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 18 Apr 2017 11:44:58 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 19 Apr 2017 13:01:54 -0300

perf tools: Use api/fs/tracing_path.h where needed

Instead of getting it out of luck from util.h, where it isn't needed at all.

---
 tools/perf/builtin-ftrace.c     | 1 +
 tools/perf/tests/parse-events.c | 1 +
 tools/perf/util/util.h          | 1 -
 3 files changed, 2 insertions(+), 1 deletion(-)
tools/perf/builtin-ftrace.c +1 -0
index 67d1403..0f34ab7 100644
@@ -16,6 +16,7 @@
 
 #include "debug.h"
 #include <subcmd/parse-options.h>
+#include <api/fs/tracing_path.h>
 #include "evlist.h"
 #include "target.h"
 #include "cpumap.h"
tools/perf/tests/parse-events.c +1 -0
index 66ecc3f..f5b77f5 100644
@@ -9,6 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/hw_breakpoint.h>
 #include <api/fs/fs.h>
+#include <api/fs/tracing_path.h>
 
 #define PERF_TP_SAMPLE_TYPE (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME | \
 			     PERF_SAMPLE_CPU | PERF_SAMPLE_PERIOD)
tools/perf/util/util.h +0 -1
index 423ed7f..d4910e4 100644
@@ -34,7 +34,6 @@
 #include <sys/ioctl.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <api/fs/tracing_path.h>
 
 extern char buildid_dir[];