Closed bernhardkaindl closed 4 months ago
Fix profile.py for older kernels:
bpf_get_ns_current_pid_tgid() is not available before Linux 5.7: https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md
bpf_get_ns_current_pid_tgid()
When the kernel is prior to 5.7, skip PID namespace translation, as bpf_get_ns_current_pid_tgid() would not be available then.
Fix profile.py for older kernels:
bpf_get_ns_current_pid_tgid()
is not available before Linux 5.7: https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.mdWhen the kernel is prior to 5.7, skip PID namespace translation, as
bpf_get_ns_current_pid_tgid()
would not be available then.