1 #ifndef __PERF_FTRACE_H__
2 #define __PERF_FTRACE_H__
4 #include <linux/list.h>
12 struct evlist
*evlist
;
15 struct list_head filters
;
16 struct list_head notrace
;
17 struct list_head graph_funcs
;
18 struct list_head nograph_funcs
;
19 struct hashmap
*profile_hash
;
20 unsigned long percpu_buffer_size
;
26 int graph_nosleep_time
;
34 struct list_head list
;
38 #define NUM_BUCKET 22 /* 20 + 2 (for outliers in both direction) */
42 int perf_ftrace__latency_prepare_bpf(struct perf_ftrace
*ftrace
);
43 int perf_ftrace__latency_start_bpf(struct perf_ftrace
*ftrace
);
44 int perf_ftrace__latency_stop_bpf(struct perf_ftrace
*ftrace
);
45 int perf_ftrace__latency_read_bpf(struct perf_ftrace
*ftrace
,
47 int perf_ftrace__latency_cleanup_bpf(struct perf_ftrace
*ftrace
);
49 #else /* !HAVE_BPF_SKEL */
52 perf_ftrace__latency_prepare_bpf(struct perf_ftrace
*ftrace __maybe_unused
)
58 perf_ftrace__latency_start_bpf(struct perf_ftrace
*ftrace __maybe_unused
)
64 perf_ftrace__latency_stop_bpf(struct perf_ftrace
*ftrace __maybe_unused
)
70 perf_ftrace__latency_read_bpf(struct perf_ftrace
*ftrace __maybe_unused
,
71 int buckets
[] __maybe_unused
)
77 perf_ftrace__latency_cleanup_bpf(struct perf_ftrace
*ftrace __maybe_unused
)
82 #endif /* HAVE_BPF_SKEL */
84 #endif /* __PERF_FTRACE_H__ */