From 2b3c81affabd7429fa752b0b39432c3219048b43 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Wed, 15 Oct 2025 21:33:08 +0530 Subject: [PATCH] TODO added for llvmlite attribute issue *Refer: https://github.com/numba/llvmlite/issues/1331 Signed-off-by: varun-r-mallya --- pythonbpf/vmlinux_parser/ir_gen/ir_generation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pythonbpf/vmlinux_parser/ir_gen/ir_generation.py b/pythonbpf/vmlinux_parser/ir_gen/ir_generation.py index 01e55da..c5fe740 100644 --- a/pythonbpf/vmlinux_parser/ir_gen/ir_generation.py +++ b/pythonbpf/vmlinux_parser/ir_gen/ir_generation.py @@ -34,6 +34,8 @@ class IRGenerator: self.generated.append(struct.name) def gen_ir(self, struct): + # TODO: we add the btf_ama attribute by monkey patching in the end of compilation, but once llvmlite + # accepts our issue, we will resort to normal accessed attribute based attribute addition # currently we generate all possible field accesses for CO-RE and put into the assignment table debug_info = debug_info_generation(struct, self.llvm_module) field_index = 0