aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/examples/bpf/hello.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/perf/examples/bpf/hello.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/examples/bpf/hello.c b/tools/perf/examples/bpf/hello.c
new file mode 100644
index 000000000000..cf3c2fdc7f79
--- /dev/null
+++ b/tools/perf/examples/bpf/hello.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int syscall_enter(openat)(void *args)
+{
+ puts("Hello, world\n");
+ return 0;
+}
+
+license(GPL);