selftests/user_events: Test persist flag cases
authorBeau Belgrave <beaub@linux.microsoft.com>
Tue, 12 Sep 2023 18:07:03 +0000 (18:07 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 4 Oct 2023 02:29:43 +0000 (22:29 -0400)
commitcf74c59c4fc10e45c6f415ee6624b07ed747f963
tree5fa151c7ef63329672e53b17868c28412b67cfbf
parent5dbd04eddb2c0841d1b3930e0a9944a2343c9cac
selftests/user_events: Test persist flag cases

Now that we have exposed USER_EVENT_REG_PERSIST events can persist both
via the ABI and in the /sys/kernel/tracing/dynamic_events file.

Ensure both the ABI and DYN cases work by calling both during the parse
tests. Add new flags test that ensures only USER_EVENT_REG_PERSIST is
honored and any other flag is invalid.

Link: https://lkml.kernel.org/r/20230912180704.1284-3-beaub@linux.microsoft.com
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/testing/selftests/user_events/abi_test.c
tools/testing/selftests/user_events/dyn_test.c