Skip to content

Commit

Permalink
Add .lazy_symbolize field to bcc_symbol_option and add ignored fields…
Browse files Browse the repository at this point in the history
… to perf_event_attr
  • Loading branch information
rhdxmr authored and yonghong-song committed Jul 9, 2020
1 parent fab26b4 commit 104d2b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/python/bcc/libbcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class bcc_symbol_option(ct.Structure):
_fields_ = [
('use_debug_file', ct.c_int),
('check_debug_file_crc', ct.c_int),
('lazy_symbolize', ct.c_int),
('use_symbol_type', ct.c_uint),
]

Expand Down
22 changes: 13 additions & 9 deletions src/python/bcc/perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@ class perf_event_attr(ct.Structure):
('read_format', ct.c_ulong),
('flags', ct.c_ulong),
('wakeup_events', ct.c_uint),
('IGNORE3', ct.c_uint),
('IGNORE4', ct.c_ulong),
('IGNORE5', ct.c_ulong),
('IGNORE6', ct.c_ulong),
('IGNORE7', ct.c_uint),
('IGNORE8', ct.c_int),
('IGNORE9', ct.c_ulong),
('IGNORE10', ct.c_uint),
('IGNORE11', ct.c_uint)
('IGNORE3', ct.c_uint), # bp_type
('IGNORE4', ct.c_ulong), # bp_addr
('IGNORE5', ct.c_ulong), # bp_len
('IGNORE6', ct.c_ulong), # branch_sample_type
('IGNORE7', ct.c_ulong), # sample_regs_user
('IGNORE8', ct.c_uint), # sample_stack_user
('IGNORE9', ct.c_int), # clockid
('IGNORE10', ct.c_ulong), # sample_regs_intr
('IGNORE11', ct.c_uint), # aux_watermark
('IGNORE12', ct.c_uint16), # sample_max_stack
('IGNORE13', ct.c_uint16), # __reserved_2
('IGNORE14', ct.c_uint), # aux_sample_size
('IGNORE15', ct.c_uint), # __reserved_3
]

# x86 specific, from arch/x86/include/generated/uapi/asm/unistd_64.h
Expand Down

0 comments on commit 104d2b3

Please sign in to comment.