Commit 895be42b authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1690 from tehnerd/fix_bpflist

fixing bpflist
parents f4e1c334 98ee5dfe
......@@ -72,8 +72,10 @@ def find_bpf_fds(pid):
for pdir in os.listdir('/proc'):
if re.match('\\d+', pdir):
find_bpf_fds(int(pdir))
try:
find_bpf_fds(int(pdir))
except OSError:
continue
print("%-6s %-16s %-8s %s" % ("PID", "COMM", "TYPE", "COUNT"))
for (pid, typ), count in sorted(counts.items(), key=lambda t: t[0][0]):
comm = comm_for_pid(pid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment