Skip to content

Commit 3ec3ab3

Browse files
add vmlinux processor to codegen pipeline
Signed-off-by: varun-r-mallya <[email protected]>
1 parent 7fb3ecf commit 3ec3ab3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

pythonbpf/codegen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from .functions import func_proc
55
from .maps import maps_proc
66
from .structs import structs_proc
7+
from .vmlinux_parser import vmlinux_proc
78
from .globals_pass import (
89
globals_list_creation,
910
globals_processing,
@@ -44,6 +45,7 @@ def processor(source_code, filename, module):
4445
for func_node in bpf_chunks:
4546
logger.info(f"Found BPF function/struct: {func_node.name}")
4647

48+
vmlinux_proc(tree, module)
4749
populate_global_symbol_table(tree, module)
4850
license_processing(tree, module)
4951
globals_processing(tree, module)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .import_detector import vmlinux_proc
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import llvmlite.ir as ir
2+
import ast
3+
4+
def vmlinux_proc(tree, module):
5+
pass

0 commit comments

Comments
 (0)