selftests/user_events: Add test cases when event is disabled
authorsunliming <sunliming@kylinos.cn>
Mon, 26 Jun 2023 11:13:44 +0000 (19:13 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 28 Jun 2023 15:01:35 +0000 (11:01 -0400)
commitd34a271accf8fad00e05aad2cecb9fb53a840a94
tree613c36d7fcace7820affc84e9885612b45f68e0a
parentc27b40cf919254459698d6622828152b509b9980
selftests/user_events: Add test cases when event is disabled

When user_events are disabled, it's write operation should return -EBADF.
Add this test cases.

Link: https://lkml.kernel.org/r/20230626111344.19136-4-sunliming@kylinos.cn
Acked-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: sunliming <sunliming@kylinos.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/testing/selftests/user_events/ftrace_test.c