From 63944c5f93647f092813c9342b0e824748f604a5 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Tue, 30 Sep 2025 20:28:35 +0530 Subject: [PATCH] add todo for global addition to debug compile unit. --- pythonbpf/codegen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pythonbpf/codegen.py b/pythonbpf/codegen.py index 8b86554..b244130 100644 --- a/pythonbpf/codegen.py +++ b/pythonbpf/codegen.py @@ -62,7 +62,9 @@ def compile_to_ir(filename: str, output: str): "language": DW_LANG_C11, "file": module._file_metadata, # type: ignore "producer": f"PythonBPF {VERSION}", - "isOptimized": True, + "isOptimized": True, # TODO: This is probably not true + # TODO: add a global field here that keeps track of all the globals. Works without it, but I think it might + # be required for kprobes. "runtimeVersion": 0, "emissionKind": 1, "splitDebugInlining": False,