From df981be095b289ca36b66b57658636c7e71834dc Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Tue, 11 Nov 2025 21:08:06 +0530 Subject: [PATCH] Janitorial format --- BCC-Examples/sync_perf_output.py | 2 -- pythonbpf/helper/helper_utils.py | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BCC-Examples/sync_perf_output.py b/BCC-Examples/sync_perf_output.py index 4b91b21..f778fd5 100644 --- a/BCC-Examples/sync_perf_output.py +++ b/BCC-Examples/sync_perf_output.py @@ -68,8 +68,6 @@ def callback(cpu, event): perf = b["events"].open_perf_buffer(callback, struct_name="data_t") print("Starting to poll... (Ctrl+C to stop)") -print("Try running: fork() or clone() system calls to trigger events") - try: while True: b["events"].poll(1000) diff --git a/pythonbpf/helper/helper_utils.py b/pythonbpf/helper/helper_utils.py index d9cb7cd..aecb5e9 100644 --- a/pythonbpf/helper/helper_utils.py +++ b/pythonbpf/helper/helper_utils.py @@ -287,7 +287,9 @@ def get_char_array_ptr_and_size(buf_arg, builder, local_sym_tab, struct_sym_tab) field_type = struct_info.field_type(field_name) if not _is_char_array(field_type): - logger.info("Field is not a char array, falling back to int or ptr detection") + logger.info( + "Field is not a char array, falling back to int or ptr detection" + ) return None, 0 struct_ptr = local_sym_tab[var_name].var