bpf: clat: add comment about debugging

This commit is contained in:
Beniamino Galvani 2025-12-17 18:25:12 +01:00
parent 131ef566ef
commit b993f1e0d2

View file

@ -34,6 +34,9 @@ char _license[] SEC("license") = "GPL";
struct clat_config config; struct clat_config config;
#ifdef DEBUG #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, ...) \ #define DBG(fmt, ...) \
({ \ ({ \
char ____fmt[] = "clat: " fmt; \ char ____fmt[] = "clat: " fmt; \