correct mistake in null pointer. Also identify error in pointer to char debug info generation

This commit is contained in:
2025-10-18 22:32:03 +05:30
parent de19c8fc90
commit d855e9ef2e
3 changed files with 7 additions and 4 deletions

View File

@ -19,7 +19,7 @@ struct {
SEC("tp/syscalls/sys_enter_setuid")
int handle_setuid_entry(struct trace_event_raw_sys_enter *ctx) {
struct event data = {};
struct blk_integrity_iter it = {};
// Extract UID from the syscall arguments
data.uid = (unsigned int)ctx->args[0];
data.ts = bpf_ktime_get_ns();

View File

@ -1,6 +1,9 @@
from pythonbpf import bpf, section, bpfglobal, compile_to_ir, compile
from vmlinux import TASK_COMM_LEN # noqa: F401
from vmlinux import struct_trace_event_raw_sys_enter # noqa: F401
# from vmlinux import struct_xdp_md
# from vmlinux import struct_request
from vmlinux import struct_blk_integrity_iter
from ctypes import c_int64
@ -24,4 +27,3 @@ def LICENSE() -> str:
compile_to_ir("simple_struct_test.py", "simple_struct_test.ll")
compile()