Add basic map generation

This commit is contained in:
Pragyansh Chaturvedi
2025-09-08 04:21:09 +05:30
parent 70dfa0ff58
commit 1bbf004554
3 changed files with 125 additions and 7 deletions

View File

@ -4,6 +4,12 @@ def bpf(func):
return func
def bpfglobal(func):
"""Decorator to mark a function as a BPF global variable."""
func._is_bpfglobal = True
return func
def section(name: str):
def wrapper(fn):
fn._section = name