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
26cc64bd
Commit
26cc64bd
authored
8 years ago
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python: Wrap the new native symbol APIs
parent
15867d32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
src/python/bcc/libbcc.py
src/python/bcc/libbcc.py
+25
-0
No files found.
src/python/bcc/libbcc.py
View file @
26cc64bd
...
...
@@ -102,3 +102,28 @@ lib.perf_reader_free.restype = None
lib
.
perf_reader_free
.
argtypes
=
[
ct
.
c_void_p
]
lib
.
perf_reader_fd
.
restype
=
int
lib
.
perf_reader_fd
.
argtypes
=
[
ct
.
c_void_p
]
# bcc symbol helpers
class
bcc_symbol
(
ct
.
Structure
):
_fields_
=
[
(
'name'
,
ct
.
c_char_p
),
(
'module'
,
ct
.
c_char_p
),
(
'offset'
,
ct
.
c_ulonglong
),
]
lib
.
bcc_resolve_symname
.
restype
=
ct
.
c_int
lib
.
bcc_resolve_symname
.
argtypes
=
[
ct
.
c_char_p
,
ct
.
c_char_p
,
ct
.
c_ulonglong
,
ct
.
POINTER
(
bcc_symbol
)]
lib
.
bcc_symcache_new
.
restype
=
ct
.
c_void_p
lib
.
bcc_symcache_new
.
argtypes
=
[
ct
.
c_int
]
lib
.
bcc_symcache_resolve
.
restype
=
ct
.
c_int
lib
.
bcc_symcache_resolve
.
argtypes
=
[
ct
.
c_void_p
,
ct
.
c_ulonglong
,
ct
.
POINTER
(
bcc_symbol
)]
lib
.
bcc_symcache_resolve_name
.
restype
=
ct
.
c_int
lib
.
bcc_symcache_resolve_name
.
argtypes
=
[
ct
.
c_void_p
,
ct
.
c_char_p
,
ct
.
POINTER
(
ct
.
c_ulonglong
)]
lib
.
bcc_symcache_refresh
.
restype
=
None
lib
.
bcc_symcache_refresh
.
argtypes
=
[
ct
.
c_void_p
]
This diff is collapsed.
Click to expand it.
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