Mark Brown
68b4d2d583
selftests/user_events: Reenable build
...
The user_events selftests were removed from the standard set of
selftests due to the uapi header it relies on having been temporarily
removed. That header is now reinstated so we can reenable the tests.
Signed-off-by: Mark Brown <broonie@kernel.org >
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
2023-08-16 10:29:57 -06:00
Beau Belgrave
60b1af8de8
tracing/user_events: Add ABI self-test
...
Add ABI specific self-test to ensure enablements work in various
scenarios such as fork, VM_CLONE, and basic event enable/disable.
Ensure ABI contracts/limits are also being upheld, such as bit limits
and data size limits.
Link: https://lkml.kernel.org/r/20230328235219.203-8-beaub@linux.microsoft.com
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com >
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org >
2023-03-29 06:52:09 -04:00
Shuah Khan
0eb15a47bf
selftests/user_events: add a note about user_events.h dependency
...
This test depends on <linux/user_events.h> exported in uapi
The following commit removed user_events.h out of uapi:
commit 5cfff569ca ("tracing: Move user_events.h temporarily out
of include/uapi")
This test will not compile until user_events.h is added back to uapi.
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
2023-02-14 13:18:55 -07:00
Mathieu Desnoyers
f3886fd289
selftests: user_events: Fix incorrect kernel headers search path
...
Use $(KHDR_INCLUDES) as lookup path for kernel headers. This prevents
building against kernel headers from the build environment in scenarios
where kernel headers are installed into a specific output directory
(O=...).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: linux-kselftest@vger.kernel.org
Cc: Ingo Molnar <mingo@redhat.com >
Cc: <stable@vger.kernel.org > # 5.18+
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
2023-02-13 09:09:45 -07:00
Beau Belgrave
3a6163893a
user_events: Add self-test for perf_event integration
...
Tests perf can be attached to and written out correctly. Ensures attach
updates status bits in user programs.
Link: https://lkml.kernel.org/r/20220118204326.2169-10-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 >
2022-02-10 22:37:59 -05:00
Beau Belgrave
745bb7e683
user_events: Add self-test for dynamic_events integration
...
Tests matching deletes, creation of basic and complex types. Ensures
common patterns work correctly when interacting with dynamic_events
file.
Link: https://lkml.kernel.org/r/20220118204326.2169-9-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 >
2022-02-10 22:37:53 -05:00
Beau Belgrave
446640e49e
user_events: Add self-test for ftrace integration
...
Tests basic functionality of registering/deregistering, status and
writing data out via ftrace mechanisms within user_events.
Link: https://lkml.kernel.org/r/20220118204326.2169-8-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 >
2022-02-10 22:37:47 -05:00