mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
add regular struct field access handling in vmlinux_registry.py
This commit is contained in:
@ -10,8 +10,9 @@ def example(ctx: struct_pt_regs) -> c_int64:
|
||||
a = ctx.r15
|
||||
req = struct_request(ctx.di)
|
||||
d = req.__data_len
|
||||
b = ctx.r12
|
||||
c = req.timeout
|
||||
print(f"data length {d} and {c} and {a}")
|
||||
print(f"data length {d} and {c} and {a} and {b}")
|
||||
return c_int64(0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user