a27360482b
complete vmlinux transpiler.
...
TODO: struct_kioctx for x86_64 vmlinux.h has anonymous structs that refused to transpile well, so an extra rule has been written to make only the structs of that external. Fix this in the future.
2025-10-08 05:15:29 +05:30
86b9ec56d7
update formatter and pre-commit
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-10-02 22:43:05 +05:30
9dbca410c2
Remove calls from map in sys_sync
2025-10-02 21:24:15 +05:30
1a66887f48
move helper annotations to helpers module
2025-10-02 01:55:32 +05:30
59b3d6514b
fix ruff errors
2025-10-02 01:23:55 +05:30
6831f11179
Fix fstrings in examples, add alternate map attr access
2025-10-02 00:22:59 +05:30
c38ecf6623
Merge branch 'master' into helper-refactor
2025-10-02 00:06:19 +05:30
8d9ff2df3b
Fix import in sys_sync example
2025-10-01 18:28:40 +05:30
c27da22bcb
remove ruff errors. May contain breaking changes.
2025-10-01 00:54:04 +05:30
8d5067996f
format chore and pre commit hook addition
2025-10-01 00:41:00 +05:30
7e45864552
Move helper scripts to a new dir, make temp fixes to allow this
2025-09-30 23:57:31 +05:30
0d0a318e46
cleanup and rename
2025-09-30 21:05:07 +05:30
af004cb864
janitorial
2025-09-30 20:09:04 +05:30
d943b78a25
Add __init__ to maps to improve imports
2025-09-30 19:51:28 +05:30
cbc6b93cd8
restructure maps dir, fix imports
2025-09-30 19:01:46 +05:30
de5cc438ab
Allow access from struct fields
2025-09-26 23:02:51 +05:30
0f365be65e
Add some support for strings in structs
2025-09-26 18:26:07 +05:30
4ebf0480dd
tweak commit to add placeholder string
2025-09-26 04:54:01 +05:30
b9ddecd6b1
Add string as a primitve to struct defs
2025-09-26 04:44:38 +05:30
737c4d3039
Support storing and printing string type
2025-09-26 04:17:29 +05:30
35969c4ff7
Add string example
2025-09-25 22:15:14 +05:30
9e87ee52f2
Move relevant vmlinux files to ex7.bpf.c
2025-09-25 00:10:39 +05:30
d0be8893eb
Add setuid C example
2025-09-24 23:48:42 +05:30
69a86c2433
Add perf_event_output boilerplate
2025-09-21 15:14:55 +05:30
0f9a4078ee
Complete struct field assignment
2025-09-21 05:22:00 +05:30
36c2c0b695
Add struct malloc, add struct instantiation to example
2025-09-21 04:48:50 +05:30
8e231845ef
Add struct example and decorator
2025-09-21 03:01:13 +05:30
a124476583
big overhaul of debug info and params passed to maps
2025-09-20 04:30:08 +05:30
73862f0084
Make max_entries optional in map BTF, add PerfEventArray to execve5
2025-09-20 03:15:09 +05:30
b0f18229d9
Add PID helper
2025-09-19 22:58:16 +05:30
95727e3374
init execve5.py to emulate ex6.bpf.c
2025-09-19 22:35:47 +05:30
efd6083caf
Add custom struct C example
2025-09-19 22:06:20 +05:30
4797c007a0
Define arch in C example
2025-09-19 04:22:36 +05:30
b2413644e4
Add generated vmlinux.py from ctypeslib
2025-09-19 04:16:17 +05:30
af32758048
Add vmlinux.h
2025-09-19 04:15:54 +05:30
cb11d60fcc
Add barebones python skeleton for kfuncs
2025-09-19 04:15:39 +05:30
1967332175
Add kprobe and vmlinux example
2025-09-19 04:15:13 +05:30
cc5f720406
Support simple XDP
2025-09-13 19:58:01 +05:30
9f858bd159
Add recursive dereferencing and get example working
2025-09-13 00:12:04 +05:30
ca203a1fdd
support referencing other variables inside binops
2025-09-12 23:05:52 +05:30
a09e4e1bb6
Add deref(), add delete helper, refactor pre-alloc
2025-09-12 04:26:27 +05:30
4ff95bb3c9
Add error todo to execve3.py
2025-09-11 09:15:27 +05:30
1936ded032
seperate expr handling logic to a different file to prevent circular import, add format strings
2025-09-11 03:07:57 +05:30
b64b5b2483
remove unary assign
2025-09-11 02:37:28 +05:30
6f6f101a86
Add support for basic arithmetic operations
2025-09-11 02:29:16 +05:30
4f726a7a1a
Add comparison ops
2025-09-11 01:52:30 +05:30
3dd3784ec4
support nested if
2025-09-11 01:37:50 +05:30
ef502bcc9f
add error for unsupported constant
2025-09-11 01:33:56 +05:30
10fb1f0914
Add else
2025-09-11 01:15:28 +05:30
431921dbc1
multiple map elements support
2025-09-11 00:45:08 +05:30