Hi everyone,
I'm wondering if it's possible in Solus to enable debug probes for kernel modules ? I'm playing with the Wireguard VPN protocol and I'd like to be able to see the decrypted packets in wireshark. Long story short, it's possible by using a tool provided by the Wireguard maintainer, tool that I can compile without any problem so the Wireguard side of things seems ok.
Things starts to get complicated when I try to launch this tool, since the script is tring to append the needed probes in the file /sys/kernel/debug/tracing/kprobe_events
via echo
, and it fails (write error, No such file or directory), despite the fact that file /sys/kernel/debug/tracing/kprobe_events
actually returns something (empty).
I did some digging around, and here is what I know :
- the user must root (of course)
- degubfs needs to be mounted
- the option
CONFIG_KPROBE_EVENTS
needs to be set to "y" at the kernel compilation time, to enable kprobes
debugfs is actually mounted, and I checked the content of /usr/src/$(uname -r)/.config
, and it indicates that CONFIG_KPROBE_EVENTS=y
.
Does anyone have an idea why /sys/kernel/debug/tracing/kprobe_events
is not writable by the script ? I'd be really grateful if someone had an clue ! This may not be related specificly to Solus but still, maybe someone have something in mind to help !
Regards