You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can see the bpf_printk print event about other process, probably userspace code fprintf didn't trigger the event.
actually, process in wsl run in a pid namespace, so the pid get from userspace is the pid in namesapce, and the pid get by ebpf code 'bpf_get_current_pid_tgid' is the global pid,.They can only be consistent if you get the pid inside the namespace in kernel mode.
Version
Microsoft Windows [版本 10.0.22000.708]
WSL Version
Kernel Version
5.10.102.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
make minimal
.sudo mount -t debugfs debugfs /sys/kernel/debug
sudo ./minimal
sudo cat /sys/kernel/debug/tracing/trace_pipe
Expected Behavior
sudo cat /sys/kernel/debug/tracing/trace_pipe
should echo the ebpf program's log.Actual Behavior
Nothing has be print out.
Diagnostic Logs
The text was updated successfully, but these errors were encountered: