Skip to content

Commit 220adaf

Browse files
committed
docs: remove unnecessary c_int64 calls from quickstart guide
1 parent 92162e5 commit 220adaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/getting-started/quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ from ctypes import c_void_p, c_int64
7878
@section("tracepoint/syscalls/sys_enter_execve")
7979
def hello_world(ctx: c_void_p) -> c_int64:
8080
print("Hello, World!")
81-
return c_int64(0)
81+
return 0
8282
```
8383

8484
* `@bpf` - Marks this function to be compiled to BPF bytecode
8585
* `@section("tracepoint/syscalls/sys_enter_execve")` - Attaches to the execve syscall tracepoint (called when processes start)
8686
* `ctx: c_void_p` - Context parameter (required for all BPF functions)
8787
* `print()` - In BPF context, this outputs to the kernel trace buffer
88-
* `return c_int64(0)` - BPF functions must return an integer
88+
* `return 0` - BPF functions must return an integer
8989

9090
### License Declaration
9191

@@ -128,7 +128,7 @@ from ctypes import c_void_p, c_int64
128128
def track_exec(ctx: c_void_p) -> c_int64:
129129
process_id = pid()
130130
print(f"Process with PID: {process_id} is starting")
131-
return c_int64(0)
131+
return 0
132132

133133
@bpf
134134
@bpfglobal

0 commit comments

Comments
 (0)