mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Add __init__ to maps to improve imports
This commit is contained in:
2
pythonbpf/maps/__init__.py
Normal file
2
pythonbpf/maps/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
from .maps import HashMap, PerfEventArray
|
||||
from .maps_pass import maps_proc
|
||||
@ -256,8 +256,8 @@ def process_bpf_map(func_node, module):
|
||||
if handler:
|
||||
return handler(map_name, rval, module)
|
||||
else:
|
||||
logger.warning(f"Unknown map type {
|
||||
rval.func.id}, defaulting to HashMap")
|
||||
logger.warning(f"Unknown map type "
|
||||
f"{rval.func.id}, defaulting to HashMap")
|
||||
process_hash_map(map_name, rval, module)
|
||||
else:
|
||||
raise ValueError("Function under @map must return a map")
|
||||
|
||||
Reference in New Issue
Block a user