mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-02-12 16:11:00 +00:00
fix format errors
This commit is contained in:
@ -1,8 +1,9 @@
|
|||||||
from pythonbpf import bpf, map, section, bpfglobal, BPF
|
|
||||||
from ctypes import c_void_p, c_int64, c_int32, c_uint64
|
|
||||||
from pythonbpf.helpers import ktime
|
|
||||||
from pythonbpf.maps import HashMap
|
|
||||||
import time
|
import time
|
||||||
|
from ctypes import c_int32, c_int64, c_uint64, c_void_p
|
||||||
|
|
||||||
|
from pythonbpf import BPF, bpf, bpfglobal, map, section
|
||||||
|
from pythonbpf.maps import HashMap
|
||||||
|
|
||||||
|
|
||||||
@bpf
|
@bpf
|
||||||
@map
|
@map
|
||||||
@ -25,7 +26,6 @@ def hello_again(ctx: c_void_p) -> c_int64:
|
|||||||
key = 0
|
key = 0
|
||||||
tsp = last().lookup(key)
|
tsp = last().lookup(key)
|
||||||
print(tsp)
|
print(tsp)
|
||||||
ts = ktime()
|
|
||||||
return c_int64(0)
|
return c_int64(0)
|
||||||
|
|
||||||
|
|
||||||
@ -34,6 +34,7 @@ def hello_again(ctx: c_void_p) -> c_int64:
|
|||||||
def LICENSE() -> str:
|
def LICENSE() -> str:
|
||||||
return "GPL"
|
return "GPL"
|
||||||
|
|
||||||
|
|
||||||
b = BPF()
|
b = BPF()
|
||||||
b.load_and_attach()
|
b.load_and_attach()
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user