Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: fix: PT_FD, PT_ERRNO, PT_PID, PT_FDLIST with int32 #526

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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: 4 additions & 0 deletions driver/bpf/filler_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ static __always_inline int __bpf_val_to_ring(struct filler_data *data,
case PT_SOCKADDR:
case PT_SOCKTUPLE:
case PT_FDLIST:
case PT_FDLIST32:
if (!data->curarg_already_on_frame) {
bpf_printk("expected arg already on frame: evt_type %d, curarg %d, type %d\n",
data->state->tail_ctx.evt_type,
Expand Down Expand Up @@ -963,6 +964,9 @@ static __always_inline int __bpf_val_to_ring(struct filler_data *data,
len = sizeof(s16);
break;
case PT_INT32:
case PT_ERRNO32:
case PT_FD32:
case PT_PID32:
*((s32 *)&data->buf[curoff_bounded]) = val;
len = sizeof(s32);
break;
Expand Down
Loading