aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/bpf_skel/vmlinux.h
diff options
context:
space:
mode:
authorGravatar Yang Jihong <yangjihong1@huawei.com> 2023-05-10 06:44:01 +0000
committerGravatar Arnaldo Carvalho de Melo <acme@redhat.com> 2023-05-10 14:20:49 -0300
commit5be6cecda0802f2397504fd40c3402cd8ac8022e (patch)
treec98ec919bec84f1eb46044e911239f5ca61499a4 /tools/perf/util/bpf_skel/vmlinux.h
parentperf parse-events: Do not break up AUX event group (diff)
downloadlinux-5be6cecda0802f2397504fd40c3402cd8ac8022e.tar.gz
linux-5be6cecda0802f2397504fd40c3402cd8ac8022e.tar.bz2
linux-5be6cecda0802f2397504fd40c3402cd8ac8022e.zip
perf bpf skels: Make vmlinux.h use bpf.h and perf_event.h in source directory
Currently, vmlinux.h uses the bpf.h and perf_event.h header files in the system path. If the header files in compilation environment are old, compilation may fail. For example: /home/yangjihong/linux/tools/perf/util/bpf_skel/.tmp/../vmlinux.h:151:27: error: field has incomplete type 'union perf_sample_weight' union perf_sample_weight weight; Use the bpf.h and perf_event.h files in the source code directory to avoid compilation compatibility problems. Signed-off-by: Yang Jihong <yangjihong1@huawei.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20230510064401.225051-1-yangjihong1@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/bpf_skel/vmlinux.h')
-rw-r--r--tools/perf/util/bpf_skel/vmlinux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/bpf_skel/vmlinux.h b/tools/perf/util/bpf_skel/vmlinux.h
index 449b1ea91fc4..c7ed51b0c1ef 100644
--- a/tools/perf/util/bpf_skel/vmlinux.h
+++ b/tools/perf/util/bpf_skel/vmlinux.h
@@ -1,6 +1,7 @@
#ifndef __VMLINUX_H
#define __VMLINUX_H
+#include <linux/stddef.h> // for define __always_inline
#include <linux/bpf.h>
#include <linux/types.h>
#include <linux/perf_event.h>