Commit 35de42cd authored by Yicong Yang's avatar Yicong Yang Committed by Namhyung Kim
Browse files

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: 0f0e1f44 ("perf build: Use pkg-config for feature check for libtrace{event,fs}")
Suggested-by: default avatarNamhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/linux-perf-users/ZyF5_Hf1iL01kldE@google.com/


Signed-off-by: default avatarYicong 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: default avatarNamhyung Kim <namhyung@kernel.org>
parent e8328bf3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
#include <traceevent/trace-seq.h>
#include <trace-seq.h>

int main(void)
{
+1 −1
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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;
Loading