diff options
author | Arnaldo Carvalho de Melo <acme@kernel.org> | 2024-02-17 01:20:23 +0300 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-02-17 02:19:57 +0300 |
commit | 29d16de26df17e94dd0310dc83c37f82b48a59cf (patch) | |
tree | a343299a1911d83be2f4eeab8ea8822c1127d4ae /tools/perf/util/bpf_skel/vmlinux | |
parent | f512e08fd0940fcd811d24e2cfd95683fe8042c3 (diff) | |
download | linux-29d16de26df17e94dd0310dc83c37f82b48a59cf.tar.xz |
perf augmented_raw_syscalls.bpf: Move 'struct timespec64' to vmlinux.h
If we instead decide to generate vmlinux.h from BTF info, it will be
there:
$ pahole timespec64
struct timespec64 {
time64_t tv_sec; /* 0 8 */
long int tv_nsec; /* 8 8 */
/* size: 16, cachelines: 1, members: 2 */
/* last cacheline: 16 bytes */
};
$
pahole manages to find it from /sys/kernel/btf/vmlinux, that is
generated from the kernel types.
With this linux/bpf.h doesn't need to be included, as its already in the
minimalistic tools/perf/util/bpf_skel/vmlinux/vmlinux.h file or what we
need comes when generating a vmlinux.h file from BTF info, i.e. when
using GEN_VMLINUX_H=1, as noticed by Namyung in a build break before
removing linux/bpf.h.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/Zc_fp6CgDClPhS_O@x1
Diffstat (limited to 'tools/perf/util/bpf_skel/vmlinux')
-rw-r--r-- | tools/perf/util/bpf_skel/vmlinux/vmlinux.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/bpf_skel/vmlinux/vmlinux.h b/tools/perf/util/bpf_skel/vmlinux/vmlinux.h index ab84a6e1da5e..e9028235d771 100644 --- a/tools/perf/util/bpf_skel/vmlinux/vmlinux.h +++ b/tools/perf/util/bpf_skel/vmlinux/vmlinux.h @@ -20,6 +20,13 @@ typedef __s64 s64; typedef int pid_t; +typedef __s64 time64_t; + +struct timespec64 { + time64_t tv_sec; + long int tv_nsec; +}; + enum cgroup_subsys_id { perf_event_cgrp_id = 8, }; |