mozillazg / hello-libbpfgo

Examples for libbpf, aquasecurity/libbpfgo and cilium/ebpf
MIT License
123 stars 23 forks source link

为什么宿主机的pid和右侧通过libbpfgo获得pidnsid不一样 #25

Open zer0-1s opened 3 hours ago

zer0-1s commented 3 hours ago

在ubuntu 20.04的宿主机中运行hello-libbpfgo的05-get-process-infomain程序

zer0-1s commented 3 hours ago

Linux内核版本

cat /proc/version
Linux version 5.15.0-124-generic (buildd@lcy02-amd64-092) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #134~20.04.1-Ubuntu SMP Tue Oct 1 15:27:33 UTC 2024
mozillazg commented 3 hours ago

@zer0-1s 感谢反馈!看了一下,是用户态程序中输出的时候写错字段了。已修复:https://github.com/mozillazg/hello-libbpfgo/commit/1c97139b157493055457c8e5b22beda3abf8ba01