xref: /linux/tools/perf/util/bpf_skel/syscall_summary.h (revision 17e548405a81665fd14cee960db7d093d1396400)
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /* Data structures shared between BPF and tools. */
3 #ifndef UTIL_BPF_SKEL_SYSCALL_SUMMARY_H
4 #define UTIL_BPF_SKEL_SYSCALL_SUMMARY_H
5 
6 enum syscall_aggr_mode {
7 	SYSCALL_AGGR_THREAD,
8 	SYSCALL_AGGR_CPU,
9 };
10 
11 struct syscall_key {
12 	int cpu_or_tid;
13 	int nr;
14 };
15 
16 struct syscall_stats {
17 	u64 total_time;
18 	u64 squared_sum;
19 	u64 max_time;
20 	u64 min_time;
21 	u32 count;
22 	u32 error;
23 };
24 
25 #endif /* UTIL_BPF_SKEL_SYSCALL_SUMMARY_H */
26