Files
python-bpf/pythonbpf
Pragyansh Chaturvedi d7a763639a Core: Guard vmlinux struct lookup against non-class metadata
_allocate_for_attribute reached for `metadata.__name__` whenever the
base symbol was not a known user struct, but `metadata` is only a struct
class for struct-typed symbols. For a symbol carrying None (any plainly
typed local) or a ctypes class (a `c_void_p` context parameter), that
raised AttributeError instead of reporting the unsupported access.

Resolve the name via getattr and fall through to the existing
"struct type not found" diagnostic when there is none.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 04:39:01 +05:30
..
2025-11-27 14:03:12 +05:30
2025-10-14 04:22:17 +05:30