From 104d2b3eb6ed1f1bdbc03cb322c6ae917c1b4425 Mon Sep 17 00:00:00 2001 From: Junyeong Jeong Date: Thu, 9 Jul 2020 18:08:08 +0900 Subject: [PATCH] Add .lazy_symbolize field to bcc_symbol_option and add ignored fields to perf_event_attr --- src/python/bcc/libbcc.py | 1 + src/python/bcc/perf.py | 22 +++++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/python/bcc/libbcc.py b/src/python/bcc/libbcc.py index 52affb61366a..86ba5f2dbf80 100644 --- a/src/python/bcc/libbcc.py +++ b/src/python/bcc/libbcc.py @@ -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), ] diff --git a/src/python/bcc/perf.py b/src/python/bcc/perf.py index 44b0128df808..b1c13f72deb8 100644 --- a/src/python/bcc/perf.py +++ b/src/python/bcc/perf.py @@ -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