perf build: Include libtraceevent headers directly indicated by pkg-config

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: 0f0e1f4456 ("perf build: Use pkg-config for feature check for libtrace{event,fs}")
Suggested-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/linux-perf-users/ZyF5_Hf1iL01kldE@google.com/
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Cc: leo.yan@arm.com
Cc: amadio@gentoo.org
Cc: linuxarm@huawei.com
Link: https://lore.kernel.org/r/20241105105649.45399-1-yangyicong@huawei.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
Yicong Yang
2024-11-08 22:42:57 -08:00
committed by Namhyung Kim
parent e8328bf3cd
commit 35de42cdfb
23 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
#include <traceevent/trace-seq.h>
#include <trace-seq.h>
int main(void)
{
+1 -1
View 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;
+1 -1
View 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>
+1 -1
View File
@@ -70,7 +70,7 @@
#include <linux/mman.h>
#ifdef HAVE_LIBTRACEEVENT
#include <traceevent/event-parse.h>
#include <event-parse.h>
#endif
struct report {
+1 -1
View 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;
+1 -1
View 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);
+1 -1
View 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
+1 -1
View 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"
+1 -1
View 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, ...) \
+1 -1
View 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 {
+1 -1
View 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
+1 -1
View 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;
+1 -1
View 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, ...)
+1 -1
View File
@@ -58,7 +58,7 @@
#include <internal/lib.h>
#ifdef HAVE_LIBTRACEEVENT
#include <traceevent/event-parse.h>
#include <event-parse.h>
#endif
/*
+1 -1
View 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"
@@ -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 */
@@ -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"
+1 -1
View 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;
+1 -1
View 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)
+1 -1
View 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>

Some files were not shown because too many files have changed in this diff Show More