mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
fix: Hashmap type check
This commit is contained in:
@ -56,9 +56,6 @@ def process_bpf_chunk(func_node, module, return_type):
|
||||
|
||||
func_name = func_node.name
|
||||
|
||||
# TODO: The function actual arg retgurn type is parsed,
|
||||
# but the actual output is not. It's still very wrong. Try uncommenting the
|
||||
# code in execve2.py once
|
||||
ret_type = return_type
|
||||
|
||||
# TODO: parse parameters
|
||||
|
||||
8
pythonbpf/maps.py
Normal file
8
pythonbpf/maps.py
Normal file
@ -0,0 +1,8 @@
|
||||
class HashMap:
|
||||
def __init__(self, key_type, value_type, max_entries):
|
||||
self.key_type = key_type
|
||||
self.value_type = value_type
|
||||
self.max_entries = max_entries
|
||||
self.entries = {}
|
||||
|
||||
# add other supported map functions here
|
||||
Reference in New Issue
Block a user