mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
add symbol resolution to import detection
This commit is contained in:
@ -1,8 +1,16 @@
|
||||
import ast
|
||||
import logging
|
||||
import importlib
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def process_vmlinux_class(node, module, vmlinux_types):
|
||||
|
||||
def get_module_symbols(module_name: str):
|
||||
module = importlib.import_module(module_name)
|
||||
return [name for name in dir(module)]
|
||||
|
||||
def process_vmlinux_class(node, module):
|
||||
# Process ClassDef nodes that use vmlinux imports
|
||||
pass
|
||||
symbols = get_module_symbols("vmlinux")
|
||||
# print(symbols)
|
||||
pass
|
||||
Reference in New Issue
Block a user