Fix return in BCC-Examples

This commit is contained in:
Pragyansh Chaturvedi
2025-10-14 17:05:05 +05:30
parent d7329ad3d7
commit b676a5ebb4
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ from ctypes import c_void_p, c_int64
@section("tracepoint/syscalls/sys_enter_clone")
def hello_world(ctx: c_void_p) -> c_int64:
print("Hello, World!")
return c_int64(0)
return 0 # type: ignore [return-value]
@bpf

View File

@ -6,7 +6,7 @@ from ctypes import c_void_p, c_int64
@section("tracepoint/syscalls/sys_enter_clone")
def hello_world(ctx: c_void_p) -> c_int64:
print("Hello, World!")
return c_int64(0)
return 0 # type: ignore [return-value]
@bpf

View File

@ -24,7 +24,7 @@ def do_trace(ctx: c_void_p) -> c_int64:
last.delete(key)
else:
last.update(key, ktime())
return c_int64(0)
return 0 # type: ignore [return-value]
@bpf