Skip to content

Commit df981be

Browse files
committed
Janitorial format
1 parent 316c21c commit df981be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

BCC-Examples/sync_perf_output.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def callback(cpu, event):
6868

6969
perf = b["events"].open_perf_buffer(callback, struct_name="data_t")
7070
print("Starting to poll... (Ctrl+C to stop)")
71-
print("Try running: fork() or clone() system calls to trigger events")
72-
7371
try:
7472
while True:
7573
b["events"].poll(1000)

pythonbpf/helper/helper_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ def get_char_array_ptr_and_size(buf_arg, builder, local_sym_tab, struct_sym_tab)
287287

288288
field_type = struct_info.field_type(field_name)
289289
if not _is_char_array(field_type):
290-
logger.info("Field is not a char array, falling back to int or ptr detection")
290+
logger.info(
291+
"Field is not a char array, falling back to int or ptr detection"
292+
)
291293
return None, 0
292294

293295
struct_ptr = local_sym_tab[var_name].var

0 commit comments

Comments
 (0)