We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c207f commit e5edac0Copy full SHA for e5edac0
pkg/ebpf/gadgets/iouring_new/program.bpf.c
@@ -5,6 +5,7 @@
5
// Check https://man7.org/linux/man-pages/man7/bpf-helpers.7.html to learn
6
// more about different available helpers
7
#include <bpf/bpf_helpers.h>
8
+#include <bpf/bpf_core_read.h>
9
10
// Inspektor Gadget buffer
11
#include <gadget/buffer.h>
@@ -45,8 +46,8 @@ int handle_submit_req(struct trace_event_raw_io_uring_submit_req *ctx)
45
46
return 0;
47
48
gadget_process_populate(&event->proc);
- event->opcode = ctx->opcode;
49
- event->flags = ctx->flags;
+ event->opcode = BPF_CORE_READ(ctx, opcode);
50
+ event->flags = BPF_CORE_READ(ctx, flags);
51
52
event->timestamp_raw = bpf_ktime_get_boot_ns();
53
0 commit comments