mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Move binops1 to tests/passing
This commit is contained in:
@ -5,7 +5,7 @@ from ctypes import c_void_p, c_int64
|
|||||||
@bpf
|
@bpf
|
||||||
@section("tracepoint/syscalls/sys_enter_sync")
|
@section("tracepoint/syscalls/sys_enter_sync")
|
||||||
def sometag(ctx: c_void_p) -> c_int64:
|
def sometag(ctx: c_void_p) -> c_int64:
|
||||||
a = 1 + 2 + 1
|
a = 1 + 2 + 1 + 12 + 13
|
||||||
print(f"{a}")
|
print(f"{a}")
|
||||||
return c_int64(0)
|
return c_int64(0)
|
||||||
|
|
||||||
|
|||||||
@ -3,11 +3,12 @@ from ctypes import c_void_p, c_int64
|
|||||||
|
|
||||||
|
|
||||||
@bpf
|
@bpf
|
||||||
@section("sometag1")
|
@section("tracepoint/syscalls/sys_enter_sync")
|
||||||
def sometag(ctx: c_void_p) -> c_int64:
|
def sometag(ctx: c_void_p) -> c_int64:
|
||||||
b = 1 + 2
|
b = 1 + 2
|
||||||
a = 1 + b
|
a = 1 + b
|
||||||
return c_int64(a)
|
print(f"{a}")
|
||||||
|
return c_int64(0)
|
||||||
|
|
||||||
|
|
||||||
@bpf
|
@bpf
|
||||||
Reference in New Issue
Block a user