]> Git Repo - J-linux.git/commitdiff
perf build: Include libtraceevent headers directly indicated by pkg-config
authorYicong Yang <[email protected]>
Tue, 5 Nov 2024 10:56:49 +0000 (18:56 +0800)
committerNamhyung Kim <[email protected]>
Sat, 9 Nov 2024 06:42:57 +0000 (22:42 -0800)
Currently the libtraceevent's found by pkg-config, which give the
include path as:

  [root@localhost tmp]# pkg-config --cflags libtraceevent
  -I/usr/local/include/traceevent

So we should include the libtraceevent headers directly without
"traceevent/" prefix. Update all the users.

Fixes: 0f0e1f445690 ("perf build: Use pkg-config for feature check for libtrace{event,fs}")
Suggested-by: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/linux-perf-users/[email protected]/
Signed-off-by: Yicong Yang <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
23 files changed:
tools/build/feature/test-libtraceevent.c
tools/perf/builtin-kmem.c
tools/perf/builtin-kwork.c
tools/perf/builtin-report.c
tools/perf/builtin-script.c
tools/perf/builtin-timechart.c
tools/perf/builtin-trace.c
tools/perf/tests/evsel-tp-sched.c
tools/perf/util/data-convert-bt.c
tools/perf/util/data-convert-json.c
tools/perf/util/debug.c
tools/perf/util/evsel.c
tools/perf/util/evsel_fprintf.c
tools/perf/util/header.c
tools/perf/util/python.c
tools/perf/util/scripting-engines/trace-event-perl.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/sort.c
tools/perf/util/trace-event-parse.c
tools/perf/util/trace-event-read.c
tools/perf/util/trace-event-scripting.c
tools/perf/util/trace-event.c
tools/perf/util/trace-event.h

index 416b11ffd4b4fc128df092a438fec58bf0c4da65..804ad80dbbd9379ea11e9e10a291c90b77f50bec 100644 (file)
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
-#include <traceevent/trace-seq.h>
+#include <trace-seq.h>
 
 int main(void)
 {
index a756147e2eec7a3820e1953db346fafa8fe687ba..4d8d94146f8dd7deca9afde9ae84b583463918c7 100644 (file)
@@ -36,7 +36,7 @@
 #include <regex.h>
 
 #include <linux/ctype.h>
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 
 static int     kmem_slab;
 static int     kmem_page;
index c1daf82c9b923be817a410f9ceffd3e44cc9a77d..8234410cba4c88b3f9596cfea7b3a70b78cf9b43 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <subcmd/pager.h>
 #include <subcmd/parse-options.h>
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 
 #include <errno.h>
 #include <inttypes.h>
index 45304ee5537cb01da1982b1beb8ea12acfb7fe40..048c91960ba91cc29cf0039abdb331d50dda54a4 100644 (file)
@@ -70,7 +70,7 @@
 #include <linux/mman.h>
 
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 struct report {
index 6b6d4472db6e61c0d7dbf955b5dba18172d9b003..9e47905f75a6b8d393253b3610fd8fb8e3ba96f0 100644 (file)
@@ -67,7 +67,7 @@
 
 #include <linux/ctype.h>
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 static char const              *script_name;
index 218c8b44d7beacd9ae34d3e95799bdd958f34f2b..9b50076449bd0b268ead3f82ff62951a9ffe39ae 100644 (file)
@@ -38,7 +38,7 @@
 #include "util/tracepoint.h"
 #include "util/util.h"
 #include <linux/err.h>
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 
 #ifdef LACKS_OPEN_MEMSTREAM_PROTOTYPE
 FILE *open_memstream(char **ptr, size_t *sizeloc);
index a661fbd870e7c9bf926e20e5ce36beca314ef9c2..156c3e8291790d2882b28a90ea4847ff7044d84c 100644 (file)
@@ -88,7 +88,7 @@
 #include <perf/mmap.h>
 
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 #ifndef O_CLOEXEC
index 3da6a76eac3856d119c6646fa0eab578024bbc5b..226196fb967795a31091187ae59a22577c58c8ca 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/err.h>
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #include "evsel.h"
 #include "tests.h"
 #include "debug.h"
index 021e9b1d5cc520b6c217906930b0d262ccd9d19c..f0599c61fab47df518bb7e4fb562cc551208c99c 100644 (file)
@@ -36,7 +36,7 @@
 #include "util/sample.h"
 
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 #define pr_N(n, fmt, ...) \
index 20bfb0884e9eaf6a7e126a0102fdf9880c9bc583..8304cd2d4a9ceb26629b27caad0201ddd61505d2 100644 (file)
@@ -28,7 +28,7 @@
 #include "util/tool.h"
 
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 struct convert_json {
index d633d15329fa09bef5e91b2c36bad16d41920603..995f6bb05b5f88d9f1548f19419e566cdfbb2541 100644 (file)
@@ -27,7 +27,7 @@
 #include <linux/ctype.h>
 
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #else
 #define LIBTRACEEVENT_VERSION 0
 #endif
index f780e30aa259f545cce6b06a3cff1c185f38579d..ef45a3f49056c07c118d89f76bba46e8deb3a3f8 100644 (file)
@@ -70,7 +70,7 @@
 #include <linux/ctype.h>
 
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 struct perf_missing_features perf_missing_features;
index c2c0500d5da99db9db620ef6c75e8915528d451d..86b7f46f9e2a9d15b2192f642dd88866d75d3dda 100644 (file)
@@ -14,7 +14,7 @@
 #include "dso.h"
 
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 static int comma_fprintf(FILE *fp, bool *first, const char *fmt, ...)
index a6386d12afd729ae89397ad5e0db0fc367117608..fca27b316fafc4d93ec8934e05caee80fff53603 100644 (file)
@@ -58,7 +58,7 @@
 #include <internal/lib.h>
 
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 /*
index ee3d43a7ba4570f0518b21e9d0b471476bb226f5..2096cdbaa53b4ce470a606f0a6e566b3c1bab7a2 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/err.h>
 #include <perf/cpumap.h>
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 #include <perf/mmap.h>
 #include "evlist.h"
index e16257d5ab2c8775be9a900bb39bf62e3da54d3f..85b7f188f729943bffb9e89ab9f0cc457107f846 100644 (file)
@@ -27,7 +27,7 @@
 #include <errno.h>
 #include <linux/bitmap.h>
 #include <linux/time64.h>
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 
 #include <stdbool.h>
 /* perl needs the following define, right after including stdbool.h */
index e6d4711a7d69c6d1a5ed24eae4f02f0c31cfa36d..8bdae066e83972a1de1615d676388af0d4b596a7 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/compiler.h>
 #include <linux/time64.h>
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 #include "../build-id.h"
index 168c488f0178d46f21126cd6603c423cc69cf8b2..9dd60c7869a28dae1a24ff3042422fe36a151af4 100644 (file)
@@ -35,7 +35,7 @@
 #include <linux/string.h>
 
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 regex_t                parent_regex;
index d97830cdbd7e638533951681b8c18e4afacc047d..41d53e1b43e7a0e5b6622e1dca491dda6ddf676f 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <linux/ctype.h>
 #include <linux/kernel.h>
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 
 static int get_common_field(struct scripting_context *context,
                            int *offset, int *size, const char *type)
index 1162c49b80825970d626ca69e31d5e304a7741aa..ecbbb93f018539ea0748706fca090f838a89f853 100644 (file)
@@ -11,7 +11,7 @@
 #include <sys/stat.h>
 #include <sys/wait.h>
 #include <sys/mman.h>
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <errno.h>
index bd0000300c774210b386d952340fdd312bb4f2c3..5596fcda2c1083b3dfcf001f9810c99af64a16a3 100644 (file)
@@ -10,7 +10,7 @@
 #include <string.h>
 #include <errno.h>
 #ifdef HAVE_LIBTRACEEVENT
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #endif
 
 #include "debug.h"
index 8ad75b31e09b8a104118a9c8107649d47bed68a1..6a8c66c64b7051a74848a27103c196bf638147ba 100644 (file)
@@ -8,7 +8,7 @@
 #include <fcntl.h>
 #include <linux/kernel.h>
 #include <linux/err.h>
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 #include <api/fs/tracing_path.h>
 #include <api/fs/fs.h>
 #include "trace-event.h"
index 0e5133f1b9103960c487c6f5fb48fc732b90a0b6..79b939f947dd2e358e1975c835c6958ac6033ba2 100644 (file)
@@ -147,7 +147,7 @@ int common_lock_depth(struct scripting_context *context);
 int perf_sample__sprintf_flags(u32 flags, char *str, size_t sz);
 
 #if defined(LIBTRACEEVENT_VERSION) &&  LIBTRACEEVENT_VERSION >= MAKE_LIBTRACEEVENT_VERSION(1, 5, 0)
-#include <traceevent/event-parse.h>
+#include <event-parse.h>
 
 static inline bool tep_field_is_relative(unsigned long flags)
 {
This page took 0.079353 seconds and 4 git commands to generate.