tracing/user_events: Use write ABI in example
authorBeau Belgrave <beaub@linux.microsoft.com>
Tue, 28 Mar 2023 23:52:15 +0000 (16:52 -0700)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 29 Mar 2023 10:52:09 +0000 (06:52 -0400)
commit9211ddaa78261373b50711c84de978cff8e2bd17
treebcc1ffbff9c530617f34a2e9140475dcf26e97b5
parent60b1af8de8c17f0edc86dc55c0bea9be3bb41626
tracing/user_events: Use write ABI in example

The ABI has changed to use a remote write approach. Update the example
to show the expected use of this new ABI. Also remove debugfs
path and use tracefs to ensure example works in more environments.

Link: https://lkml.kernel.org/r/20230328235219.203-9-beaub@linux.microsoft.com
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
samples/user_events/example.c