Browse Source

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.

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: http://lkml.kernel.org/n/tip-0bqugg5lc5ksla1v4m0dnmc1@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Arnaldo Carvalho de Melo 8 years ago
parent
commit
20a9ed280d
3 changed files with 2 additions and 1 deletions
  1. 1 0
      tools/perf/builtin-ftrace.c
  2. 1 0
      tools/perf/tests/parse-events.c
  3. 0 1
      tools/perf/util/util.h

+ 1 - 0
tools/perf/builtin-ftrace.c

@@ -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"

+ 1 - 0
tools/perf/tests/parse-events.c

@@ -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)

+ 0 - 1
tools/perf/util/util.h

@@ -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[];