Skip to content

Commit

Permalink
adapt mem mod to local vmlinux
Browse files Browse the repository at this point in the history
Signed-off-by: LiuLingze <[email protected]>
  • Loading branch information
GorilaMond committed Jun 2, 2024
1 parent 02762cb commit c67c070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eBPF_Supermarket/Stack_Analyser/bpf/memleak.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ int memleak__mm_page_free(struct trace_event_raw_mm_page_free *ctx)
SEC("tracepoint/percpu/percpu_alloc_percpu")
int memleak__percpu_alloc_percpu(struct trace_event_raw_percpu_alloc_percpu *ctx)
{
gen_alloc_enter(ctx->bytes_alloc);
gen_alloc_enter(ctx->size);

return gen_alloc_exit2(ctx, (u64)(ctx->ptr));
}
Expand Down

0 comments on commit c67c070

Please sign in to comment.