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
a0dd71ec
Commit
a0dd71ec
authored
Sep 20, 2017
by
Teng Qin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format and add documentation to bcc_elf.h
parent
ac5c03ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
src/cc/bcc_elf.h
src/cc/bcc_elf.h
+13
-3
No files found.
src/cc/bcc_elf.h
View file @
a0dd71ec
...
...
@@ -32,17 +32,27 @@ struct bcc_elf_usdt {
const
char
*
arg_fmt
;
};
// Binary module path, bcc_elf_usdt struct, payload
typedef
void
(
*
bcc_elf_probecb
)(
const
char
*
,
const
struct
bcc_elf_usdt
*
,
void
*
);
// Symbol name, start address, length, payload
// Callback returning a negative value indicates to stop the iteration
typedef
int
(
*
bcc_elf_symcb
)(
const
char
*
,
uint64_t
,
uint64_t
,
void
*
);
// Segment virtual address, memory size, file offset, payload
// Callback returns a negative value indicates to stop the iteration
typedef
int
(
*
bcc_elf_load_sectioncb
)(
uint64_t
,
uint64_t
,
uint64_t
,
void
*
);
// Iterate over all USDT probes noted in a binary module
// Returns -1 on error, and 0 on success
int
bcc_elf_foreach_usdt
(
const
char
*
path
,
bcc_elf_probecb
callback
,
void
*
payload
);
int
bcc_elf_loadaddr
(
const
char
*
path
,
uint64_t
*
address
);
int
bcc_elf_foreach_sym
(
const
char
*
path
,
bcc_elf_symcb
callback
,
void
*
option
,
void
*
payload
);
// Iterate over symbol table of a binary module
// Parameter "option" points to a bcc_symbol_option struct to indicate wheather
// and how to use debuginfo file, and what types of symbols to load.
// Returns -1 on error, and 0 on success or stopped by callback
int
bcc_elf_foreach_sym
(
const
char
*
path
,
bcc_elf_symcb
callback
,
void
*
option
,
void
*
payload
);
int
bcc_elf_get_type
(
const
char
*
path
);
int
bcc_elf_is_shared_obj
(
const
char
*
path
);
...
...
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