user_events: Add sample code for typical usage
authorBeau Belgrave <beaub@linux.microsoft.com>
Tue, 18 Jan 2022 20:43:25 +0000 (12:43 -0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 11 Feb 2022 03:38:15 +0000 (22:38 -0500)
commitc57eb47815097d879e1fa8c81e313aec917d8f4d
treea7db6221e5e19b4cf57cea173ed0c9de565a2a60
parent7640e77035aadcd7d50f9c7583ca25a4e1aa2874
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>
samples/user_events/Makefile [new file with mode: 0644]
samples/user_events/example.c [new file with mode: 0644]