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
e3b3b4c2
Commit
e3b3b4c2
authored
Mar 28, 2016
by
Jean-Tiare Le Bigot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose buitin byte swap methods
parent
af66546d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/python/bcc/__init__.py
src/python/bcc/__init__.py
+6
-0
No files found.
src/python/bcc/__init__.py
View file @
e3b3b4c2
...
...
@@ -39,6 +39,11 @@ ksyms = []
ksym_names
=
{}
ksym_loaded
=
0
_kprobe_limit
=
1000
BASE_CFLAGS
=
[
'-D__HAVE_BUILTIN_BSWAP16__'
,
'-D__HAVE_BUILTIN_BSWAP32__'
,
'-D__HAVE_BUILTIN_BSWAP64__'
,
]
@
atexit
.
register
def
cleanup_kprobes
():
...
...
@@ -140,6 +145,7 @@ class BPF(object):
self
.
debug
=
debug
self
.
funcs
=
{}
self
.
tables
=
{}
cflags
=
BASE_CFLAGS
+
cflags
cflags_array
=
(
ct
.
c_char_p
*
len
(
cflags
))()
for
i
,
s
in
enumerate
(
cflags
):
cflags_array
[
i
]
=
s
.
encode
(
"ascii"
)
if
text
:
...
...
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