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