summaryrefslogtreecommitdiff
path: root/tools/perf/include/bpf/bpf.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/include/bpf/bpf.h')
-rw-r--r--tools/perf/include/bpf/bpf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/include/bpf/bpf.h b/tools/perf/include/bpf/bpf.h
index a63aa6241b7f..2873cdde293f 100644
--- a/tools/perf/include/bpf/bpf.h
+++ b/tools/perf/include/bpf/bpf.h
@@ -9,6 +9,9 @@
#define probe(function, vars) \
SEC(#function "=" #function " " #vars) function
+#define syscall_enter(name) \
+ SEC("syscalls:sys_enter_" #name) syscall_enter_ ## name
+
#define license(name) \
char _license[] SEC("license") = #name; \
int _version SEC("version") = LINUX_VERSION_CODE;