Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c1466a5
Add BPFHelperID enum to bpf_helper_handler
r41k0u Sep 30, 2025
fa2ff0a
Use BPFHelperID Enums in bpf_helper_handler
r41k0u Sep 30, 2025
7e45864
Move helper scripts to a new dir, make temp fixes to allow this
r41k0u Sep 30, 2025
6cd0749
Create HelperProcessorRegistry
r41k0u Sep 30, 2025
61f6743
Use HelperHandleRegitry
r41k0u Sep 30, 2025
168ab29
Format function definitions in bpf_helper_handler
r41k0u Sep 30, 2025
244ea14
Refactor bpf_map_lookup_elem_emitter, add utils
r41k0u Oct 1, 2025
4af6c4d
Refactor bpf_map_delete_elem_emitter
r41k0u Oct 1, 2025
d2e0f17
Use key_arg instead of call in get_key_ptr
r41k0u Oct 1, 2025
7f6c318
Use get_key_ptr in map_update helper
r41k0u Oct 1, 2025
8dd2746
rename get_key_ptr to get_or_create_ptr_from_arg
r41k0u Oct 1, 2025
ffcd2de
Replace usage of get_key_ptr with get_or_create_ptr_from_arg
r41k0u Oct 1, 2025
8d9ff2d
Fix import in sys_sync example
r41k0u Oct 1, 2025
18f164b
Add get_flags_val to helper_utils
r41k0u Oct 1, 2025
9c58116
Use get_flags_val in bpf_map_update_elem_emitter
r41k0u Oct 1, 2025
d18c69f
Add _handle_fstring_print scaffolding
r41k0u Oct 1, 2025
17f60d7
Add _process_*_in_fval to helper_utils
r41k0u Oct 1, 2025
7b01f1d
Complete helpers for fstrings in helper_utils
r41k0u Oct 1, 2025
6ccbab4
Complete printk refactor
r41k0u Oct 1, 2025
4f33db2
Refactor bpf_perf_event_output_emitter
r41k0u Oct 1, 2025
99d6c19
Fix calling of _simple_string_print
r41k0u Oct 1, 2025
28cc0c5
Refactor handle_helper_call
r41k0u Oct 1, 2025
929eef3
Add has_handler to HelperHandlerRegistry
r41k0u Oct 1, 2025
cecf450
Fix line length nitpicks
r41k0u Oct 1, 2025
9099b3e
Replace logger.warn with logger.warning
r41k0u Oct 1, 2025
ba3e020
Register output in HelperHandlerRegistry
r41k0u Oct 1, 2025
690ff7f
Remove unnecessary prints
r41k0u Oct 1, 2025
81807ac
Fix simple_string_print docstring
r41k0u Oct 1, 2025
c38ecf6
Merge branch 'master' into helper-refactor
r41k0u Oct 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/struct_and_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ def events() -> PerfEventArray:
@section("tracepoint/syscalls/sys_enter_clone")
def hello(ctx: c_void_p) -> c_int32:
dataobj = data_t()
ts = ktime()
strobj = "hellohellohello"
dataobj.pid = pid()
dataobj.ts = ktime()
# dataobj.comm = strobj
print(
f"clone called at {dataobj.ts} by pid {dataobj.pid}, comm {strobj} at time {ts}"
f"clone called at {dataobj.ts} by pid {
dataobj.pid}, comm {strobj} at time {ts}"
)
events.output(dataobj)
return c_int32(0)
Expand Down
Loading
Loading