Skip to content
Open
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
5 changes: 3 additions & 2 deletions pkg/ebpf/gadgets/iouring_new/program.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Check https://man7.org/linux/man-pages/man7/bpf-helpers.7.html to learn
// more about different available helpers
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_core_read.h>

// Inspektor Gadget buffer
#include <gadget/buffer.h>
Expand Down Expand Up @@ -45,8 +46,8 @@ int handle_submit_req(struct trace_event_raw_io_uring_submit_req *ctx)
return 0;

gadget_process_populate(&event->proc);
event->opcode = ctx->opcode;
event->flags = ctx->flags;
event->opcode = BPF_CORE_READ(ctx, opcode);
event->flags = BPF_CORE_READ(ctx, flags);

event->timestamp_raw = bpf_ktime_get_boot_ns();

Expand Down
Loading