Files
Agam Dua 91d6c39f06 kernel: Fix debug build and add debug symbols to installation
Fixed a bug with the debug kernel build where common/ was repeated
after the common path variable, resulting in the debug
confs never being picked up.

This exposed a subsequent bug where the debug conf
was included in other builds, this is also fixed by creating a
separate directory for debug confs with one file at the moment,
debug.conf that contains debug configurations and bpf specific
configs.

To enable kernel builds (specifically for bpf) the dwarves package was added
to the kernel dockerfile for the pahole package.

Signed-off-by: Agam Dua <agam_dua@apple.com>
2026-03-20 14:50:23 -07:00

23 lines
427 B
Plaintext

# Generate BTF type info
CONFIG_DEBUG_INFO_BTF=y
# JIT compile the program
CONFIG_BPF_JIT=y
# Allow the user to attach BPF programs to kprobe, uprobe, and tracepoint events
CONFIG_BPF_EVENTS=y
# Kernel probes
CONFIG_KPROBES=y
CONFIG_KPROBE_EVENTS=y
# Userspace probes
CONFIG_UPROBES=y
CONFIG_UPROBE_EVENTS=y
# ftrace infrastructure
CONFIG_DYNAMIC_FTRACE=y
CONFIG_FTRACE=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_FUNCTION_TRACER=y