1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_BPF_EVENT_H
3 #define __PERF_BPF_EVENT_H
5 #include <linux/compiler.h>
6 #include <linux/rbtree.h>
14 struct bpf_prog_info_node
{
15 struct bpf_prog_info_linear
*info_linear
;
16 struct rb_node rb_node
;
19 #ifdef HAVE_LIBBPF_SUPPORT
20 int machine__process_bpf_event(struct machine
*machine
, union perf_event
*event
,
21 struct perf_sample
*sample
);
23 int perf_event__synthesize_bpf_events(struct perf_session
*session
,
24 perf_event__handler_t process
,
25 struct machine
*machine
,
26 struct record_opts
*opts
);
28 static inline int machine__process_bpf_event(struct machine
*machine __maybe_unused
,
29 union perf_event
*event __maybe_unused
,
30 struct perf_sample
*sample __maybe_unused
)
35 static inline int perf_event__synthesize_bpf_events(struct perf_session
*session __maybe_unused
,
36 perf_event__handler_t process __maybe_unused
,
37 struct machine
*machine __maybe_unused
,
38 struct record_opts
*opts __maybe_unused
)
42 #endif // HAVE_LIBBPF_SUPPORT