summaryrefslogtreecommitdiff
path: root/samples/user_events/Makefile
diff options
context:
space:
mode:
authorBeau Belgrave <beaub@linux.microsoft.com>2022-01-18 12:43:25 -0800
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-02-10 22:38:15 -0500
commitc57eb47815097d879e1fa8c81e313aec917d8f4d (patch)
treea7db6221e5e19b4cf57cea173ed0c9de565a2a60 /samples/user_events/Makefile
parent7640e77035aadcd7d50f9c7583ca25a4e1aa2874 (diff)
user_events: Add sample code for typical usage
Add sample code for user_events typical usage to show how to register and monitor status, as well as to write out data. Link: https://lkml.kernel.org/r/20220118204326.2169-12-beaub@linux.microsoft.com Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'samples/user_events/Makefile')
-rw-r--r--samples/user_events/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/samples/user_events/Makefile b/samples/user_events/Makefile
new file mode 100644
index 000000000000..7252b589db57
--- /dev/null
+++ b/samples/user_events/Makefile
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+CFLAGS += -Wl,-no-as-needed -Wall -I../../usr/include
+
+example: example.o
+example.o: example.c