xref: /aosp_15_r20/external/bcc/libbpf-tools/memleak.h (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
1 #ifndef __MEMLEAK_H
2 #define __MEMLEAK_H
3 
4 #define ALLOCS_MAX_ENTRIES 1000000
5 #define COMBINED_ALLOCS_MAX_ENTRIES 10240
6 
7 struct alloc_info {
8 	__u64 size;
9 	__u64 timestamp_ns;
10 	int stack_id;
11 };
12 
13 union combined_alloc_info {
14 	struct {
15 		__u64 total_size : 40;
16 		__u64 number_of_allocs : 24;
17 	};
18 	__u64 bits;
19 };
20 
21 #endif /* __MEMLEAK_H */
22