We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9683e37 commit 8aa9cf7Copy full SHA for 8aa9cf7
tests/failing_tests/conditionals/oneline.py
@@ -0,0 +1,18 @@
1
+from pythonbpf import bpf, section, bpfglobal, compile
2
+from ctypes import c_void_p, c_int64
3
+
4
5
+@bpf
6
+@section("tracepoint/syscalls/sys_enter_execve")
7
+def hello_world(ctx: c_void_p) -> c_int64:
8
+ print("Hello, World!") if True else print("Goodbye, World!")
9
+ return
10
11
12
13
+@bpfglobal
14
+def LICENSE() -> str:
15
+ return "GPL"
16
17
18
+compile()
0 commit comments