From 0edcae4e4a9ae1468e1364ec9e69c63e0362912a Mon Sep 17 00:00:00 2001 From: Francisco Javier Honduvilla Coto Date: Wed, 3 Apr 2024 10:16:34 +0100 Subject: [PATCH] bpf: Use native unwinder program id rather than using old hardcoded value --- src/bpf/profiler.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bpf/profiler.bpf.c b/src/bpf/profiler.bpf.c index 9860b49..5aaf47b 100644 --- a/src/bpf/profiler.bpf.c +++ b/src/bpf/profiler.bpf.c @@ -679,7 +679,7 @@ int dwarf_unwind(struct bpf_perf_event_data *ctx) { LOG("Continuing walking the stack in a tail call, current tail %d", unwind_state->tail_calls); unwind_state->tail_calls++; - bpf_tail_call(ctx, &programs, 0); + bpf_tail_call(ctx, &programs, PROGRAM_NATIVE_UNWINDER); } // We couldn't get the whole stacktrace.