-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requestwishlistStuff we want but there are more important thingsStuff we want but there are more important things
Description
Currently, we only support zero-initialization of a struct object, and filling in the struct fields individually later.
@bpf
@struct
class data_t:
pid: c_uint64
ts: c_uint64
@bpf
@section("tracepoint/syscalls/sys_enter_execve")
def hello_world(ctx: c_void_p) -> c_int64:
dat = data_t()
dat.pid = 123A better way of assigning fields would be directly from the constructor:
dat = data_t(123, 0)Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestwishlistStuff we want but there are more important thingsStuff we want but there are more important things