Implement bpf_get_stack handler

This commit is contained in:
Pragyansh Chaturvedi
2025-11-13 00:59:50 +05:30
parent 29e90601b7
commit a10da4a277
3 changed files with 38 additions and 2 deletions

View File

@ -52,6 +52,11 @@ def skb_store_bytes(offset, from_buf, size, flags=0):
return ctypes.c_int64(0)
def get_stack(buf, flags=0):
"""get the current stack trace"""
return ctypes.c_int64(0)
XDP_ABORTED = ctypes.c_int64(0)
XDP_DROP = ctypes.c_int64(1)
XDP_PASS = ctypes.c_int64(2)