ce222afa65
Core: Make vmlinux field lookups agree on one source of truth
...
has_field() consulted hasattr() on the ctypes class while get_field_type()
indexed the parsed members dict. For any member ctypes exposes but the
vmlinux parser never registered, has_field() said True and get_field_type()
then died with a raw KeyError.
Both now consult the parsed members dict, and a lookup that misses raises a
ValueError that distinguishes "no such field" from "field exists in
vmlinux.py but the parser does not support it yet".
get_field_index() additionally derives the index from the ctypes _fields_
list (the C declaration order) instead of the insertion order of the parsed
members dict, so it no longer depends on the two happening to coincide.
No change to generated IR: every vmlinux/xdp test program compiles to a
byte-identical .ll.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 04:43:49 +05:30
3f4f95115f
Core: Pass compilation_context to _prepare_expr_args as it calls eval_expr
2026-03-29 13:28:38 +05:30
f2b9767098
Core: Fix args in helper/printk_formatter
2026-03-29 13:11:44 +05:30
0e087b9ea5
Core: Revert unnecessary changes to allocation_pass
2026-03-29 02:48:16 +05:30
ccbdfee9de
Core: Remove unsused args in assign_pass
2026-03-29 02:44:42 +05:30
61bca6bad9
Core: Fix global pass to divide internal functions
2026-03-29 02:40:55 +05:30
305a8ba9e3
Core: Fix unnecessary args and changes in maps pass
2026-03-29 01:36:46 +05:30
bdcfe47601
Core: Fix unnecessary arg in structs/structs_pass
2026-03-28 20:44:07 +05:30
3396d84e26
Core: Fix incompatible logic in helper/helper_utils
2026-03-28 19:58:26 +05:30
c22911daaf
Core: FIx inconsistent compilation_context usage in helper/printk_formatter
2026-03-28 19:02:16 +05:30
c04e32bd24
Core: Remove spurious comments from functions_pass
2026-03-28 12:15:41 +05:30
ec4a6852ec
PythonBPF: Add Compilation Context to allow parallel compilation of multiple bpf programs
2026-02-21 18:59:33 +05:30
049ec55e85
bump version
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-11-30 05:55:22 +05:30
704b0d8cd3
Fix debug info generation of PerfEventArray maps
2025-11-28 21:02:27 +05:30
4ea02745b3
Janitorial: Remove useless comments
2025-11-28 21:02:26 +05:30
6f017a9176
Unify struct and pointer to struct handling, abstract null check in ir_ops
2025-11-28 21:02:25 +05:30
24e5829b80
format chore
2025-11-28 14:52:45 +05:30
536ea4855e
add cgroup helper
2025-11-28 14:47:01 +05:30
de8c486461
fix: remove deref_to_depth on single depth pointers
2025-11-27 22:59:34 +05:30
f135cdbcc0
format chore
2025-11-27 14:03:12 +05:30
a8595ff1d2
feat: allocate tmp variable for pointer to vmlinux struct field access.
2025-11-27 14:02:00 +05:30
9becee8f77
add expected type check
2025-11-27 12:44:12 +05:30
189526d5ca
format chore
2025-11-27 12:42:10 +05:30
1593b7bcfe
feat:user defined struct casting
2025-11-27 12:41:57 +05:30
4905649700
feat:non struct field values can be cast
2025-11-26 14:18:40 +05:30
fed6af1ed6
bump version and prepare for release
2025-11-22 13:54:41 +05:30
18886816fb
Merge pull request #68 from pythonbpf/request-struct
...
Support enough machinery to make request struct work
2025-11-22 13:48:06 +05:30
a2de15fb1e
add c_int to type_deducer.py
2025-11-22 13:36:21 +05:30
9def969592
Make map val struct type allocation work by fixing pointer deref and debuginfogen: WIP
2025-11-22 13:20:09 +05:30
a91c3158ad
sort fields in debug info by offset order
2025-11-22 12:35:47 +05:30
2b3635fe20
format chore
2025-11-22 01:48:44 +05:30
6f25c554a9
fix CO-RE read for cast structs
2025-11-22 01:47:25 +05:30
84507b8b98
add btf probe read kernel helper
2025-11-22 00:57:12 +05:30
a42a75179d
format chore
2025-11-22 00:37:39 +05:30
377fa4041d
add regular struct field access handling in vmlinux_registry.py
2025-11-22 00:36:59 +05:30
99321c7669
add a failing C test
2025-11-21 23:01:08 +05:30
11850d16d3
field check in allocation pass
2025-11-21 21:47:58 +05:30
9ee821c7f6
make pointer allocation feasible but subverting LLC
2025-11-21 21:47:55 +05:30
25394059a6
allow casting
2025-11-21 21:47:10 +05:30
fde8eab775
allow allocation pass on vmlinux cast
2025-11-21 21:47:07 +05:30
42b8865a56
Merge branch 'master' into request-struct
2025-11-21 02:10:52 +05:30
902a52a07d
remove debug print statements
2025-11-20 14:39:13 +05:30
306570953b
format chore
2025-11-20 14:18:45 +05:30
740eed45e1
add placeholder debug info to shut llvmlite up about NoneType
2025-11-20 14:17:57 +05:30
c8801f4c3e
nonetype not parsed
2025-11-19 23:35:10 +05:30
e5b3b001ce
Minor fix for PTR_TO_MAP_VALUE_OR_NULL target
2025-11-19 04:29:35 +05:30
19b42b9a19
Allocate hashmap lookup return vars based on the value type of said hashmap
2025-11-19 04:09:51 +05:30
9f5ec62383
Add get_uint8_type to DebugInfoGenerator
2025-11-19 03:24:40 +05:30
573bbb350e
Allow structs to be key/val type for hashmaps
2025-11-19 00:08:15 +05:30
64679f8072
Add skeleton _get_key_val_dbg_type in maps_debug_info.py
2025-11-18 05:00:00 +05:30