mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 02:20:06 +01:00
bpf: clat: add comment about debugging
This commit is contained in:
parent
131ef566ef
commit
b993f1e0d2
1 changed files with 3 additions and 0 deletions
|
|
@ -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; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue