mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
add vmlinux processor to codegen pipeline
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
This commit is contained in:
@ -4,6 +4,7 @@ from .license_pass import license_processing
|
||||
from .functions import func_proc
|
||||
from .maps import maps_proc
|
||||
from .structs import structs_proc
|
||||
from .vmlinux_parser import vmlinux_proc
|
||||
from .globals_pass import (
|
||||
globals_list_creation,
|
||||
globals_processing,
|
||||
@ -44,6 +45,7 @@ def processor(source_code, filename, module):
|
||||
for func_node in bpf_chunks:
|
||||
logger.info(f"Found BPF function/struct: {func_node.name}")
|
||||
|
||||
vmlinux_proc(tree, module)
|
||||
populate_global_symbol_table(tree, module)
|
||||
license_processing(tree, module)
|
||||
globals_processing(tree, module)
|
||||
|
||||
@ -0,0 +1 @@
|
||||
from .import_detector import vmlinux_proc
|
||||
|
||||
5
pythonbpf/vmlinux_parser/import_detector.py
Normal file
5
pythonbpf/vmlinux_parser/import_detector.py
Normal file
@ -0,0 +1,5 @@
|
||||
import llvmlite.ir as ir
|
||||
import ast
|
||||
|
||||
def vmlinux_proc(tree, module):
|
||||
pass
|
||||
Reference in New Issue
Block a user