mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
emit license
This commit is contained in:
@ -3,13 +3,17 @@ CFLAGS := -O2 -emit-llvm -target bpf -c
|
||||
|
||||
SRC := example.bpf.c
|
||||
OUT := example.bpf.ll
|
||||
OBJECT := example.bpf.o
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(OUT)
|
||||
|
||||
object: $(SRC)
|
||||
$(BPF_CLANG) $(CFLAGS) $< -o $(OBJECT)
|
||||
|
||||
$(OUT): $(SRC)
|
||||
$(OUT): $(SRC) object
|
||||
$(BPF_CLANG) $(CFLAGS) -S $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OUT)
|
||||
rm -f $(OUT) $(OBJECT)
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
from pythonbpf.decorators import tracepoint, license
|
||||
from pythonbpf.decorators import tracepoint
|
||||
|
||||
@tracepoint("syscalls:sys_enter_execve")
|
||||
def trace_execve(ctx) -> int:
|
||||
print("execve called\n")
|
||||
return 0
|
||||
|
||||
license("GPL")
|
||||
LICENSE = "GPL"
|
||||
|
||||
Reference in New Issue
Block a user