diff options
author | 2021-02-01 13:48:16 -0600 | |
---|---|---|
committer | 2021-02-11 16:22:32 -0500 | |
commit | 7d5367539ae902a9208c5918e21b0f89e5feb29c (patch) | |
tree | 75663c8c69db97ee5e931bf7311eda35a818225f /tools/testing/selftests/ftrace | |
parent | selftests/ftrace: Update synthetic event syntax errors (diff) | |
download | linux-7d5367539ae902a9208c5918e21b0f89e5feb29c.tar.gz linux-7d5367539ae902a9208c5918e21b0f89e5feb29c.tar.bz2 linux-7d5367539ae902a9208c5918e21b0f89e5feb29c.zip |
selftests/ftrace: Add '!event' synthetic event syntax check
Add a check confirming that '!event' alone will remove a synthetic
event.
Link: https://lkml.kernel.org/r/1dff3f03d18542cece08c10d6323d8a8dba11e42.1612208610.git.zanussi@kernel.org
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/selftests/ftrace')
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-syntax.tc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-syntax.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-syntax.tc index 59216f3cfb12..2968cdc7df30 100644 --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-syntax.tc +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-syntax.tc @@ -32,6 +32,10 @@ grep "myevent[[:space:]]u64 var1" synthetic_events # it is not possible to add same name event ! echo "myevent u64 var2" >> synthetic_events +# make sure !synthetic event doesn't require a field +echo "!myevent" >> synthetic_events +echo "myevent u64 var1" >> synthetic_events + # Non-append open will cleanup all events and add new one echo "myevent u64 var2" > synthetic_events |