mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Add basic map generation
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user