From c67c07083d3526b9cff0f2dac651c45bdcbbf527 Mon Sep 17 00:00:00 2001 From: LiuLingze Date: Sun, 2 Jun 2024 14:14:18 +0000 Subject: [PATCH] adapt mem mod to local vmlinux Signed-off-by: LiuLingze --- eBPF_Supermarket/Stack_Analyser/bpf/memleak.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBPF_Supermarket/Stack_Analyser/bpf/memleak.bpf.c b/eBPF_Supermarket/Stack_Analyser/bpf/memleak.bpf.c index 292066b21..24f2a14e7 100644 --- a/eBPF_Supermarket/Stack_Analyser/bpf/memleak.bpf.c +++ b/eBPF_Supermarket/Stack_Analyser/bpf/memleak.bpf.c @@ -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)); }