xref: /linux/tools/perf/util/bpf_skel/bperf_cgroup.h (revision 9e906a9dead17d81d6c2687f65e159231d0e3286)
1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 /* Data structures shared between BPF and tools. */
3 #ifndef __BPERF_CGROUP_H
4 #define __BPERF_CGROUP_H
5 
6 // These constants impact code size of bperf_cgroup.bpf.c that may result in BPF
7 // verifier issues. They are exposed to control the size and also to disable BPF
8 // counters when the number of user events is too large.
9 
10 // max cgroup hierarchy level: arbitrary
11 #define BPERF_CGROUP__MAX_LEVELS  10
12 // max events per cgroup: arbitrary
13 #define BPERF_CGROUP__MAX_EVENTS  128
14 
15 #endif /* __BPERF_CGROUP_H */
16