From 4e4c377aa67dd7ec30c52d16b8f7fec4f9491a99 Mon Sep 17 00:00:00 2001 From: Giuseppe Ognibene Date: Thu, 12 Feb 2026 12:17:41 +0100 Subject: [PATCH] Update jump_table map to modern BTF style map Signed-off-by: Giuseppe Ognibene --- bpf/generictracer/k_tracer_tailcall.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bpf/generictracer/k_tracer_tailcall.h b/bpf/generictracer/k_tracer_tailcall.h index 6498b67040..95cec2b19b 100644 --- a/bpf/generictracer/k_tracer_tailcall.h +++ b/bpf/generictracer/k_tracer_tailcall.h @@ -6,12 +6,12 @@ #include #include -struct bpf_map_def SEC("maps") jump_table = { - .type = BPF_MAP_TYPE_PROG_ARRAY, - .key_size = sizeof(__u32), - .value_size = sizeof(__u32), - .max_entries = 16, -}; +struct { + __uint(type, BPF_MAP_TYPE_PROG_ARRAY); + __type(key, u32); + __type(value, u32); + __uint(max_entries, 16); +} jump_table SEC(".maps"); enum { k_tail_protocol_http = 0,