5451ba646d
Add support for unary op 'not' in eval_expr, move not test to passing
2025-10-10 22:53:52 +05:30
7720437ca5
Add failing tests struct and not for conditionals
2025-10-10 22:53:52 +05:30
eb0a7a917d
Add map test to conditionals
2025-10-10 22:53:51 +05:30
6f65903552
Add var_binop test for conditionals
2025-10-10 22:53:51 +05:30
97e74d09be
Add var test for conditionals
2025-10-10 22:53:50 +05:30
9c7560ed2e
Add const_binop test for conditionals
2025-10-10 22:53:50 +05:30
2979ceedcf
Add const_int test for conditionals
2025-10-10 22:53:49 +05:30
745f59278f
Move conditional logic to eval_expr, add _conver_to_bool, add passing bool test
2025-10-10 22:53:49 +05:30
49c59b32ca
Add Boolean return support
2025-10-10 22:53:48 +05:30
ff78140a7d
Eval LHS and RHS in _handle_compare
2025-10-10 22:53:48 +05:30
82ff71b753
Add _handle_cond to expr_pass
2025-10-10 22:53:48 +05:30
f46e7cd846
Reduce a condition from handle_cond
2025-10-10 22:53:47 +05:30
9d73eb67c4
Add TODO for fixing struct_kioctx issue
2025-10-10 22:53:47 +05:30
21ce041353
Refactor hist() calls to use dot notation
2025-10-10 20:45:07 +05:30
6402cf7be5
remove todos and move to projects on github.
2025-10-08 22:27:51 +05:30
9a96e1247b
Merge pull request #29 from pythonbpf/smol_pp
...
add patch for Kernel 6.14 BTF in transpiler
2025-10-08 21:47:49 +05:30
989134f4be
add patch for Kernel 6.14 BTF
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-10-08 21:47:02 +05:30
120aec08da
Update TODO.md
2025-10-08 21:40:14 +05:30
e66ae7cc89
Add failing oneline IfExpr conditional test
2025-10-08 21:36:08 +05:30
b95fbd0ed0
rollback example
2025-10-08 14:53:51 +05:30
32dc8e6636
Merge pull request #21 from pythonbpf/globals
...
Adds support for globals
SO......
*I'm not merging this because it's complete, but because I don't want it to diverge from master too much.
*Stuff I still need to complete:
-> Structs and eval expressions in these globals.
-> handling the global keyword.
-> assigning back to the global and reading from inside a function.
-> Basically, `global` keyword in Python is used to write only and reading can be done directly without declaring as global as a direct assign without global declaration is going to diverge from Python.
-> The above logic is going to be supported by `global_sym_tab` generated using the new order of passes that we are doing.
-> This needs to be fixed and done ASAP to avoid conflicts. so yes, im gonna do it soon.
2025-10-08 14:48:37 +05:30
8e3942d38c
format chore
2025-10-08 14:31:37 +05:30
d84ce0c6fa
update helpers and change examples.
2025-10-08 13:57:09 +05:30
8d07a4cd05
add xdp struct to args
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-10-08 11:40:12 +05:30
8485460374
Merge pull request #26 from pythonbpf/refactor_conds
...
Refactor conds
2025-10-08 07:28:08 +05:30
9fdc6fa3ed
Add compile to tests/failing_tests/conditionals/helper_cond.py
2025-10-08 07:26:41 +05:30
17004d58df
Remove completed short term goal from TODO.md
2025-10-08 07:25:14 +05:30
6362a5e665
Fix expr imports
2025-10-08 07:24:14 +05:30
d38d73d5c6
Move handle_comparator to type_normalization
2025-10-08 07:20:04 +05:30
0a6571726a
Move convert_to_bool to type_normalization
2025-10-08 07:14:42 +05:30
e62557bd1d
Seperate type_normalization from expr_pass
2025-10-08 06:59:32 +05:30
ee90ee9392
Fix type_deducer import in expr
2025-10-08 06:50:53 +05:30
5f9eaff59c
Fix expr imports
2025-10-08 06:49:34 +05:30
b86341ce7a
Rework dir structure for expr
2025-10-08 06:45:52 +05:30
4857739eec
cleanup handle_cond in functions_pass
2025-10-08 06:42:34 +05:30
3bb4b099c1
Add passing and.py test for conditionals
2025-10-08 06:28:03 +05:30
e7912a088f
Add passing or.py test for conditionals
2025-10-08 06:27:18 +05:30
95d63d969e
Add _handle_or_or in expr_pass
2025-10-08 06:24:57 +05:30
1f96bab944
Add _handle_and_op in expr_pass
2025-10-08 06:24:13 +05:30
f98491f3bd
Add handle_and and handle_or handling stub in eval_expr
2025-10-08 06:14:32 +05:30
98f262ae22
Add BoolOp handling stub in eval_expr
2025-10-08 06:11:59 +05:30
d2ff53052c
Add support for is and is not keywords
2025-10-08 06:04:29 +05:30
ecac24c1d2
Add explanation notes to failing conditionals tests
2025-10-08 05:57:17 +05:30
a764b095f8
Add helper_cond failing test for conditionals
2025-10-08 05:54:49 +05:30
95a196a91f
Move map_comp test to passing
2025-10-08 05:53:52 +05:30
6b59980874
Add null checks for pointer derefs to avoid map_value_or_null verifier errors
2025-10-08 05:53:12 +05:30
0c977514af
Add TODO for fixing struct_kioctx issue
2025-10-08 05:34:25 +05:30
1207730ce3
update vmlinux.py
2025-10-08 05:27:56 +05:30
0d9dcd122c
Merge pull request #27 from pythonbpf/vmlinux
...
Add vmlinux transpiler from experiments
2025-10-08 05:19:44 +05:30
8a69e05ee2
fix duplicate variable in example
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-10-08 05:18:49 +05:30