kubeskoop
kubeskoop copied to clipboard
getNsInumByPid func
https://github.com/alibaba/kubeskoop/blob/de036e0e13b90d0019a489086c7003202b5c178e/pkg/exporter/nettop/netns.go#L22C1-L42C3
for _, name := range names {
......
}
Hi, why don't we readlink /proc/{{pid}}/ns/net directly?There is no need to loop here
hmm...you are right
https://github.com/alibaba/kubeskoop/pull/278 [change](change:getNsInumByPid readlink /proc/{{pid}}/ns/net directly)