mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
13 lines
303 B
Python
13 lines
303 B
Python
def tracepoint(name: str):
|
|
def wrapper(fn):
|
|
fn._section = f"tracepoint/{name}"
|
|
return fn
|
|
return wrapper
|
|
|
|
def license(license_type: str):
|
|
return license_type
|
|
|
|
def trace_printk(msg: str):
|
|
# placeholder — real version lowers to IR later
|
|
print(f"[trace_printk] {msg}")
|