]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/user_events: Add non-spacing separator check
authorBeau Belgrave <beaub@linux.microsoft.com>
Tue, 23 Apr 2024 16:23:38 +0000 (16:23 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 13 May 2024 16:15:46 +0000 (12:15 -0400)
commit78490b74435a8c738e91260e7df387e7cb6d6568
tree9cb781687f95a9f02a674c478214cdf860ed10bb
parentbd125a084091396f3e796bb3dc009940d9771811
selftests/user_events: Add non-spacing separator check

The ABI documentation indicates that field separators do not need a
space between them, only a ';'. When no spacing is used, the register
must work. Any subsequent register, with or without spaces, must match
and not return -EADDRINUSE.

Add a non-spacing separator case to our self-test register case to ensure
it works going forward.

Link: https://lore.kernel.org/linux-trace-kernel/20240423162338.292-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/ftrace_test.c