Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf bpf: No need to include headers just use forward declarations

In the bpf-prologue.h header we are just using pointers, so no need to
include headers for that, just provide forward declarations for those
types.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+3 -3
+3 -3
tools/perf/util/bpf-prologue.h
··· 6 6 #ifndef __BPF_PROLOGUE_H 7 7 #define __BPF_PROLOGUE_H 8 8 9 - #include <linux/compiler.h> 10 - #include <linux/filter.h> 11 - #include "probe-event.h" 9 + struct probe_trace_arg; 10 + struct bpf_insn; 12 11 13 12 #define BPF_PROLOGUE_MAX_ARGS 3 14 13 #define BPF_PROLOGUE_START_ARG_REG BPF_REG_3 ··· 18 19 struct bpf_insn *new_prog, size_t *new_cnt, 19 20 size_t cnt_space); 20 21 #else 22 + #include <linux/compiler.h> 21 23 #include <errno.h> 22 24 23 25 static inline int