diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2018-10-18 16:12:34 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-10-20 00:25:11 +0300 |
commit | a360d9e4016c1fcf41553b37ad496870dc5723d0 (patch) | |
tree | 20feec7b3cf625dcd19172ce8c7daf4cc2fb675d /include | |
parent | 282447ba6b00c64678ffdf964f44e5c8b1c68377 (diff) | |
download | linux-a360d9e4016c1fcf41553b37ad496870dc5723d0.tar.xz |
tracing: Fix synthetic event to allow semicolon at end
Fix synthetic event to allow independent semicolon at end.
The synthetic_events interface accepts a semicolon after the
last word if there is no space.
# echo "myevent u64 var;" >> synthetic_events
But if there is a space, it returns an error.
# echo "myevent u64 var ;" > synthetic_events
sh: write error: Invalid argument
This behavior is difficult for users to understand. Let's
allow the last independent semicolon too.
Link: http://lkml.kernel.org/r/153986835420.18251.2191216690677025744.stgit@devbox
Cc: Shuah Khan <shuah@kernel.org>
Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
Cc: stable@vger.kernel.org
Fixes: commit 4b147936fa50 ("tracing: Add support for 'synthetic' events")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions