From 220adaf0114c689cb2f9094dbceea3b5432950ef Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Fri, 23 Jan 2026 04:01:31 +0530 Subject: [PATCH] docs: remove unnecessary c_int64 calls from quickstart guide --- docs/getting-started/quickstart.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index 5196728..41fad01 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -78,14 +78,14 @@ from ctypes import c_void_p, c_int64 @section("tracepoint/syscalls/sys_enter_execve") def hello_world(ctx: c_void_p) -> c_int64: print("Hello, World!") - return c_int64(0) + return 0 ``` * `@bpf` - Marks this function to be compiled to BPF bytecode * `@section("tracepoint/syscalls/sys_enter_execve")` - Attaches to the execve syscall tracepoint (called when processes start) * `ctx: c_void_p` - Context parameter (required for all BPF functions) * `print()` - In BPF context, this outputs to the kernel trace buffer -* `return c_int64(0)` - BPF functions must return an integer +* `return 0` - BPF functions must return an integer ### License Declaration @@ -128,7 +128,7 @@ from ctypes import c_void_p, c_int64 def track_exec(ctx: c_void_p) -> c_int64: process_id = pid() print(f"Process with PID: {process_id} is starting") - return c_int64(0) + return 0 @bpf @bpfglobal