From b993f1e0d2e92b2c747b635b8d39d8daa612f900 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 4f96e1e256..3db57c4204 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; \