From 481b7f2f59b5fe992a6638c13e21687f097a5a6a Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 17 Dec 2025 18:25:12 +0100 Subject: [PATCH] bpf: clat: add comment about debugging --- src/core/bpf/clat.bpf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/bpf/clat.bpf.c b/src/core/bpf/clat.bpf.c index 67ecf4ec73..788c4fec7e 100644 --- a/src/core/bpf/clat.bpf.c +++ b/src/core/bpf/clat.bpf.c @@ -34,6 +34,9 @@ char _license[] SEC("license") = "GPL"; struct clat_config config; #ifdef DEBUG +/* Note: when enabling debugging, you also need to add CAP_PERFMON + * to the CapabilityBoundingSet of the NM systemd unit. The messages + * will be printed to /sys/kernel/debug/tracing/trace_pipe */ #define DBG(fmt, ...) \ ({ \ char ____fmt[] = "clat: " fmt; \