File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
#include <asm/ptrace.h>
7
7
#endif
8
8
9
- #include <bpf/bpf_endian.h>
10
9
#include <bpf/bpf_helpers.h>
11
10
#include <bpf/bpf_tracing.h>
12
11
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ extern int increase_priority_and_launch_stealers(void);
17
17
extern int join_cpu_stealers (void );
18
18
extern int check_capability (const cap_value_t cap );
19
19
extern int toggle_kptr (void );
20
+ extern void cleanup_mem_ebpf (void );
20
21
21
22
/* Constants needed for argparse */
22
23
static const struct argp_option options [] = {
@@ -190,6 +191,7 @@ int main(int argc, char **argv)
190
191
191
192
/* Cleanup: close BPF object */
192
193
cleanup :
194
+ cleanup_mem_ebpf ();
193
195
join_cpu_stealers ();
194
196
195
197
/* Restore kptr_restrict if needed */
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ int load_ebpf_mem_progs() {
111
111
/*
112
112
* cleanup_mem_ebpf() - Unmaps the shared memory region used to access map and free eBPF resources.
113
113
*/
114
- void cleanup_mmap () {
114
+ void cleanup_mem_ebpf () {
115
115
if (mem_ebpf_skel ) {
116
116
if (read_mem_result ) munmap (read_mem_result , sizeof (struct read_mem_result ));
117
117
mem_ebpf__destroy (mem_ebpf_skel );
You can’t perform that action at this time.
0 commit comments