Add bpf decorator, start rewrite

This commit is contained in:
Pragyansh Chaturvedi
2025-09-06 12:42:20 +05:30
parent 81f4a0a799
commit 88fa690493
2 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,9 @@
def bpf(func):
"""Decorator to mark a function for BPF compilation."""
func._is_bpf = True
return func
def section(name: str):
def wrapper(fn):
fn._section = name