Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
895be42b
Commit
895be42b
authored
Apr 18, 2018
by
yonghong-song
Committed by
GitHub
Apr 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1690 from tehnerd/fix_bpflist
fixing bpflist
parents
f4e1c334
98ee5dfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tools/bpflist.py
tools/bpflist.py
+4
-2
No files found.
tools/bpflist.py
View file @
895be42b
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment