geenrate gep IR

This commit is contained in:
2025-10-26 02:12:33 +05:30
parent 1ea44dd8e1
commit 93285dbdd8
6 changed files with 93 additions and 36 deletions

View File

@ -19,8 +19,8 @@ There is no point of
SEC("tp/syscalls/sys_enter_execve")
int handle_setuid_entry(struct trace_event_raw_sys_enter *ctx) {
// Access each argument separately with clear variable assignments
long int arg0 = ctx->id;
bpf_printk("args[0]: %d", arg0);
long int id = ctx->id;
bpf_printk("This is context field %d", id);
/*
* the IR to aim for is
* %2 = alloca ptr, align 8