Commit Graph

  • 32c1afff36 Tests: Make the integer properties cover every type on every run tests/property-based-ints Pragyansh Chaturvedi 2026-10-27 21:55:59 +05:30
  • 7b328fb9b7 Tests: Property-test integer arithmetic and conversions against clang Pragyansh Chaturvedi 2026-10-27 21:05:37 +05:30
  • ed5bc46793 Tests: Add Hypothesis, with dev, ci and thorough profiles Pragyansh Chaturvedi 2026-10-27 21:05:25 +05:30
  • 7e69e7b23e Tests: Let host_jit read a function's result as any ctypes type Pragyansh Chaturvedi 2026-10-27 21:05:23 +05:30
  • 873498190d Docs: Use one README logo that reads in both themes docs/readme-logo-center Pragyansh Chaturvedi 2026-10-16 19:23:53 +05:30
  • b076ef4f2b Revise project status note in README master Pragyansh Chaturvedi 2026-10-16 19:20:10 +05:30
  • ad7a8567b1 Merge pull request #112 from pythonbpf/docs/readme-logo-center Pragyansh Chaturvedi 2026-10-16 19:19:18 +05:30
  • c308704dc5 Docs: Center the README logo Pragyansh Chaturvedi 2026-10-16 19:07:25 +05:30
  • f2e6fba645 Merge pull request #111 from pythonbpf/fix/trivial-xfails Pragyansh Chaturvedi 2026-10-09 06:10:18 +05:30
  • 37fe5d7a9a Tests: Derive the map-value pointer-depth check from a clang reference fix/trivial-xfails Pragyansh Chaturvedi 2026-10-09 05:31:38 +05:30
  • d093516c1d Merge pull request #110 from pythonbpf/fix/default-gpl-license Pragyansh Chaturvedi 2026-10-09 05:19:41 +05:30
  • 47586a49ad Docs: Stop calling LICENSE required in the user guide overview fix/default-gpl-license Pragyansh Chaturvedi 2026-10-09 04:26:27 +05:30
  • f5eb809f4b Tests: Move tests that pass out of failing_tests Pragyansh Chaturvedi 2026-10-09 03:13:51 +05:30
  • 28536c2c07 Core: Refuse an expression statement whose calls would be dropped Pragyansh Chaturvedi 2026-10-09 03:13:50 +05:30
  • 4c57a4e834 Core: Reject a struct value as a condition with a clear error Pragyansh Chaturvedi 2026-10-09 03:13:49 +05:30
  • dde720f46e Core: Pass helpers the pointer a local holds, not its slot's address Pragyansh Chaturvedi 2026-10-09 03:13:47 +05:30
  • 4d2bf6842c Docs: Document the GPL default for programs without a LICENSE Pragyansh Chaturvedi 2026-10-09 03:01:13 +05:30
  • b843b8f343 Core: Default to a GPL license, with a warning, when none is defined Pragyansh Chaturvedi 2026-10-09 03:01:11 +05:30
  • de259c8e86 Merge pull request #109 from pythonbpf/tests/loop-selftests Pragyansh Chaturvedi 2026-10-09 02:21:16 +05:30
  • 99744914ba Tests: Load without -d in the verifier tests, and report a timeout properly tests/loop-selftests Pragyansh Chaturvedi 2026-10-09 02:11:02 +05:30
  • 77a5ff15e0 Tests: Port the loop1, loop2, loop4 and loop5 verifier-scale selftests Pragyansh Chaturvedi 2026-10-09 01:54:15 +05:30
  • 8907fd511a Tools: Stop counting plain loops as a hard blocker in the selftest audit Pragyansh Chaturvedi 2026-10-09 01:54:13 +05:30
  • 869cf61869 Examples: Draw bpfsnake's terminal board exactly as the bpftrace script does feat/bpfsnake Varun R Mallya 2026-09-26 02:14:14 +05:30
  • ec5d72fdbe Bump version to 0.2.0 v0.2.0 Varun R Mallya 2026-09-26 01:05:13 +05:30
  • 40aad02d73 loops (#106) varunrmallya 2026-09-26 01:00:45 +05:30
  • e9e067e867 Tests: Run loop programs on the host, plus adversarial loop cases feat/loops Varun R Mallya 2026-09-25 23:36:45 +05:30
  • 1225e94c20 Core: Fix loop edge cases the lowering got wrong Varun R Mallya 2026-09-25 23:36:43 +05:30
  • 3a6277e0bf Tests: Indent the loop C reference with spaces Varun R Mallya 2026-09-25 00:37:05 +05:30
  • bae742b45b Tests: Loops pass now, plus the cases the lowering promises Varun R Mallya 2026-09-25 00:19:52 +05:30
  • f1555a63a6 Core: Lower for-over-range and while loops, with break and continue Varun R Mallya 2026-09-25 00:19:52 +05:30
  • 5ab6281649 Core: Lower if-branches in the function's return type Varun R Mallya 2026-09-25 00:19:40 +05:30
  • cd3cb1ba14 Tests: Annotated assignment passes now Varun R Mallya 2026-09-25 00:11:35 +05:30
  • 6220180df8 Core: Lower annotated assignment (x: c_int32 = 0) Varun R Mallya 2026-09-25 00:11:35 +05:30
  • aa612a4151 Core: Let a packet pointer be narrowed on a store, as C does fix/packet-pointer-arith Pragyansh Chaturvedi 2026-09-25 23:21:12 +05:30
  • 4cb5f01374 Merge origin/master (#105) into fix/packet-pointer-arith Pragyansh Chaturvedi 2026-09-25 23:09:31 +05:30
  • 4662fe63b5 Merge pull request #105 from pythonbpf/claude/pythonbpf-state-replication-g23gij Pragyansh Chaturvedi 2026-09-25 22:29:04 +05:30
  • a5eeaafdf3 Tests: Context fields into slots of every width, and c_bool claude/pythonbpf-state-replication-g23gij Pragyansh Chaturvedi 2026-09-25 22:20:09 +05:30
  • 20a1e2f3a1 Core: Accept c_bool as a ctypes type Pragyansh Chaturvedi 2026-09-25 22:20:07 +05:30
  • 4e8f767e6d Core: Size and describe integers by their real width Pragyansh Chaturvedi 2026-09-25 22:20:05 +05:30
  • d3fa7d7e42 Core: Print integers of any width in f-strings Pragyansh Chaturvedi 2026-09-25 22:20:00 +05:30
  • bc56dd821a Examples: Let bpfsnake draw in the terminal with --terminal Varun R Mallya 2026-09-25 18:53:00 +05:30
  • 851c7efea4 Examples: Draw bpfsnake with pygame and steer it from the window Varun R Mallya 2026-09-25 18:45:09 +05:30
  • cba2c894b3 Examples: Port bpfsnake, the game logic in eBPF and the board in Python Varun R Mallya 2026-09-25 18:25:54 +05:30
  • 35d176692f Tests: probe_read_kernel into a scalar, shared ctx names, map value compares Varun R Mallya 2026-09-25 18:25:54 +05:30
  • 1dfb22d3dc Core: Compare map values by value, not by address Varun R Mallya 2026-09-25 18:25:53 +05:30
  • 95a986e6bb Core: Give each function its own context DILocalVariable Varun R Mallya 2026-09-25 18:25:30 +05:30
  • d992493288 Core: Let probe_read_kernel read into a scalar, from a register address Varun R Mallya 2026-09-25 18:25:30 +05:30
  • 107f035014 Merge #106 (loops) for bpfsnake Varun R Mallya 2026-09-25 18:11:13 +05:30
  • cb1952db17 Merge #105 (selftest roadmap tests, ArrayMap, narrow ctx stores) for bpfsnake Varun R Mallya 2026-09-25 18:09:13 +05:30
  • 638cc86e08 Tests: Map-lookup pointers into a struct field, an integer local, a cast, a return fix/deref-before-convert Pragyansh Chaturvedi 2026-09-25 13:16:15 +05:30
  • 1a2a7f144a Core: Dereference a pointer wherever a number is wanted, not only in operands Pragyansh Chaturvedi 2026-09-25 13:15:42 +05:30
  • db894087a2 Tests: Packet pointers through locals, bounds checks, data_meta, and the refusals Pragyansh Chaturvedi 2026-09-25 13:03:32 +05:30
  • b9b582a7d8 Core: Carry the packet-pointer kind on the type descriptor Pragyansh Chaturvedi 2026-09-25 13:03:30 +05:30
  • 6a859ac0cd Core: Special-case packet-pointer context fields in arithmetic Pragyansh Chaturvedi 2026-09-25 11:58:42 +05:30
  • c11a25c0ab Core: Access narrow map values at their own width fix/narrow-map-values Varun R Mallya 2026-09-25 11:15:46 +05:30
  • aa13482191 Core: Write struct fields through a map-lookup pointer, null-checked fix/struct-map-value-field Varun R Mallya 2026-09-25 11:11:00 +05:30
  • 13538a4042 Core: Augmented assignment to a map-lookup local rebinds it, as v = v + 1 does fix/augassign-map-value Varun R Mallya 2026-09-25 11:07:50 +05:30
  • fab456b83d Tests: Pin 32-bit arithmetic on xdp_md.data as a verifier-level xfail tests/packet-pointer-arith Pragyansh Chaturvedi 2026-09-25 11:20:13 +05:30
  • 49ed2cf127 Core: Report an unknown name in an operand as undefined Pragyansh Chaturvedi 2026-09-25 10:28:56 +05:30
  • ad6adb14c9 x Pragyansh Chaturvedi 2026-09-25 10:26:22 +05:30
  • 3a984dd9e2 Revert "Core: Export every XDP action from pythonbpf.helper" Pragyansh Chaturvedi 2026-09-25 10:15:49 +05:30
  • 55fb6d6b9a Core: Export every XDP action from pythonbpf.helper Pragyansh Chaturvedi 2026-09-25 01:25:35 +05:30
  • d64932774c Docs: Refresh the audit numbers after the classifier fixes Pragyansh Chaturvedi 2026-09-25 01:18:56 +05:30
  • 49e74858a6 Tests: Let a verifier-level xfail name the rejection it expects Pragyansh Chaturvedi 2026-09-25 01:18:54 +05:30
  • 3de9832792 Core: Implement ArrayMap as BPF_MAP_TYPE_ARRAY Pragyansh Chaturvedi 2026-09-25 01:18:52 +05:30
  • efe58fc396 Core: Treat an integer vmlinux field as its IntTy in assignments Pragyansh Chaturvedi 2026-09-25 01:17:00 +05:30
  • 057b68c4d7 Core: Let every integer ctypes constructor declare a slot of its width Pragyansh Chaturvedi 2026-09-25 01:16:26 +05:30
  • cf80aadd35 Tools: Fix four classifier mistakes in the selftest audit Pragyansh Chaturvedi 2026-09-25 01:15:58 +05:30
  • 598e3b4efa Tests: Skip vmlinux tests only when vmlinux.py is absent Pragyansh Chaturvedi 2026-09-25 01:15:55 +05:30
  • 89b7eb6d27 Tests: Indent the loop C reference with spaces Varun R Mallya 2026-09-25 00:37:05 +05:30
  • 5fb3c8ded4 Tests: Loops pass now, plus the cases the lowering promises Varun R Mallya 2026-09-25 00:19:52 +05:30
  • 24e7febd8d Core: Lower for-over-range and while loops, with break and continue Varun R Mallya 2026-09-25 00:19:52 +05:30
  • 919d99477f Core: Lower if-branches in the function's return type Varun R Mallya 2026-09-25 00:19:40 +05:30
  • c340ebf82c Tests: Annotated assignment passes now Varun R Mallya 2026-09-25 00:11:35 +05:30
  • 7ecc737cf9 Core: Lower annotated assignment (x: c_int32 = 0) Varun R Mallya 2026-09-25 00:11:35 +05:30
  • 298c140ee7 Tests: Port five more selftests found by re-running the corpus audit Claude 2026-09-24 16:31:15 +00:00
  • e0d4d1eada Tools: Check in the selftest corpus classifier Claude 2026-09-24 16:31:15 +00:00
  • 5e70b8f0fc Tests: Port sixteen more kernel selftests now that scalar globals exist Claude 2026-09-24 15:59:35 +00:00
  • 0bdea85020 Core: Store a context field into a narrower slot through convert() Claude 2026-09-24 15:59:35 +00:00
  • 3ffba47a80 Tests: Replace the WORKAROUND(globals) HashMaps with real @bpfglobal scalars Claude 2026-09-24 15:15:58 +00:00
  • 708b5afa48 Merge remote-tracking branch 'origin/master' into claude/pythonbpf-state-replication-g23gij Claude 2026-09-24 15:14:21 +00:00
  • dc628ee5b5 Merge pull request #101 from pythonbpf/feat/integer-signedness Pragyansh Chaturvedi 2026-09-24 19:59:05 +05:30
  • f727bfc65e Docs: Note the packet-pointer-field gotcha, with the planned mechanism feat/integer-signedness Pragyansh Chaturvedi 2026-09-24 19:56:30 +05:30
  • 6caab6f704 Tests: Rank the ctx-field case on a scalar field, not the packet pointer Pragyansh Chaturvedi 2026-09-24 19:53:30 +05:30
  • 6b19bf6732 Tests: Unsigned augmented assignment, helper results, map values, ctx field rank Pragyansh Chaturvedi 2026-09-24 19:31:11 +05:30
  • e35d4c0327 Core: Pass the result sign to the operator in augmented assignment Pragyansh Chaturvedi 2026-09-24 19:30:37 +05:30
  • 9cd8e1037a Core: Review nits on the signedness branch Pragyansh Chaturvedi 2026-09-24 19:29:07 +05:30
  • 532dc0f808 Core: Rank ctx fields and map values by their declared types Pragyansh Chaturvedi 2026-09-24 19:28:31 +05:30
  • 26604b9846 Core: Give a helper call's value the sign its registry entry declares Pragyansh Chaturvedi 2026-09-24 19:27:53 +05:30
  • c52a5f592d Merge branch 'master' into feat/integer-signedness Pragyansh Chaturvedi 2026-09-24 17:09:54 +05:30
  • 78ec75a4d1 Tests: Bool widening and narrowing Pragyansh Chaturvedi 2026-09-24 16:53:03 +05:30
  • a230b440b9 Core: Give bools C's rules: widen to 0 or 1, narrow by comparing with zero Pragyansh Chaturvedi 2026-09-24 16:52:59 +05:30
  • e251845d8c Merge remote-tracking branch 'origin/master' into fix/temp-count-if-condition fix/temp-count-if-condition Pragyansh Chaturvedi 2026-09-24 16:44:47 +05:30
  • 05660d46b4 Core: The pool-duplication TODO after #104: free with opt, 8 bytes without Pragyansh Chaturvedi 2026-09-24 16:44:44 +05:30
  • 3179549760 Add LLVM optimizer (#104) varunrmallya 2026-09-23 21:05:33 +05:30
  • 52e80c8ddd expr_pass: add bpf_passthrough attributes to make tests pass feature/llvm-opt-o2 Varun R Mallya 2026-09-23 18:33:16 +05:30
  • d9cd0728f5 Add LLVM optimizer Varun R Mallya 2026-09-23 18:11:20 +05:30
  • 8290fecac2 tests: Add loop and AnnAssign xfail tests (#103) varunrmallya 2026-09-23 18:08:27 +05:30
  • 3effae93b8 tests: Add loop and AnnAssign xfail tests feature/loop-xfail-tests Varun R Mallya 2026-09-23 17:50:06 +05:30
  • 5e5c14e210 Core: Correct the pool-duplication TODO: the dead allocas do cost stack Pragyansh Chaturvedi 2026-09-19 15:31:27 +05:30