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
f1bb6eaf
Commit
f1bb6eaf
authored
Jan 18, 2018
by
yonghong-song
Committed by
GitHub
Jan 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1540 from pchaigno/regex-filtering-kallsyms
Use /proc/kallsyms for regex filtering
parents
7c91cf67
fe033552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/python/bcc/__init__.py
src/python/bcc/__init__.py
+4
-3
No files found.
src/python/bcc/__init__.py
View file @
f1bb6eaf
...
...
@@ -477,10 +477,11 @@ class BPF(object):
blacklist
=
set
([
line
.
rstrip
().
split
()[
1
]
for
line
in
blacklist_file
])
fns
=
[]
with
open
(
"
%s/available_filter_functions"
%
TRACEFS
)
as
avail_file
:
with
open
(
"
/proc/kallsyms"
)
as
avail_file
:
for
line
in
avail_file
:
fn
=
line
.
rstrip
().
split
()[
0
]
if
re
.
match
(
event_re
,
fn
)
and
fn
not
in
blacklist
:
(
_
,
t
,
fn
)
=
line
.
rstrip
().
split
()[:
3
]
if
(
t
.
lower
()
in
[
't'
,
'w'
])
and
re
.
match
(
event_re
,
fn
)
\
and
fn
not
in
blacklist
:
fns
.
append
(
fn
)
return
set
(
fns
)
# Some functions may appear more than once
...
...
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