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
bad7a20c
Commit
bad7a20c
authored
May 11, 2018
by
4ast
Committed by
GitHub
May 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1750 from iovisor/yhs_dev
fix get_kprobe_functions
parents
fe966bbd
0c274729
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
src/python/bcc/__init__.py
src/python/bcc/__init__.py
+9
-8
No files found.
src/python/bcc/__init__.py
View file @
bad7a20c
...
...
@@ -495,17 +495,18 @@ class BPF(object):
blacklist
=
set
([
line
.
rstrip
().
split
()[
1
]
for
line
in
blacklist_f
])
fns
=
[]
found_stext
=
False
in_init_section
=
0
with
open
(
"/proc/kallsyms"
,
"rb"
)
as
avail_file
:
for
line
in
avail_file
:
(
_
,
t
,
fn
)
=
line
.
rstrip
().
split
()[:
3
]
if
found_stext
is
False
:
if
fn
==
b'_stext'
:
found_stext
=
True
(
t
,
fn
)
=
line
.
rstrip
().
split
()[
1
:
3
]
if
in_init_section
==
0
:
if
fn
==
b'__init_begin'
:
in_init_section
=
1
continue
elif
in_init_section
==
1
:
if
fn
==
b'__init_end'
:
in_init_section
=
2
continue
if
fn
==
b'_etext'
:
break
if
(
t
.
lower
()
in
[
b't'
,
b'w'
])
and
re
.
match
(
event_re
,
fn
)
\
and
fn
not
in
blacklist
:
fns
.
append
(
fn
)
...
...
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