mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
support nested if
This commit is contained in:
@ -31,11 +31,12 @@ def hello_again(ctx: c_void_p) -> c_int64:
|
|||||||
# print("execve called within last second")
|
# print("execve called within last second")
|
||||||
# last().delete(key)
|
# last().delete(key)
|
||||||
x = True
|
x = True
|
||||||
x = False
|
y = False
|
||||||
if x:
|
if x:
|
||||||
print("we prevailed")
|
if y:
|
||||||
else:
|
print("we prevailed")
|
||||||
print("we did not prevail")
|
else:
|
||||||
|
print("we did not prevail")
|
||||||
ts = ktime()
|
ts = ktime()
|
||||||
last().update(key, ts)
|
last().update(key, ts)
|
||||||
keys = 2
|
keys = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user