diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2018-10-21 17:08:20 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-10-28 09:58:15 +0100 |
commit | 18858511fd8a877303cc34c06efa461b26a0e070 (patch) | |
tree | 12f44dd2fc90a9bbdf54c6927245bdf8eb65414a /kernel/tsacct.c | |
parent | selftests: ftrace: Add synthetic event syntax testcase (diff) | |
download | linux-18858511fd8a877303cc34c06efa461b26a0e070.tar.xz linux-18858511fd8a877303cc34c06efa461b26a0e070.zip |
tracing: Return -ENOENT if there is no target synthetic event
Return -ENOENT error if there is no target synthetic event.
This notices an operation failure to user as below;
# echo 'wakeup_latency u64 lat; pid_t pid;' > synthetic_events
# echo '!wakeup' >> synthetic_events
sh: write error: No such file or directory
Link: http://lkml.kernel.org/r/154013449986.25576.9487131386597290172.stgit@devbox
Acked-by: Tom Zanussi <zanussi@linux.intel.com>
Tested-by: Tom Zanussi <zanussi@linux.intel.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Rajvi Jingar <rajvi.jingar@intel.com>
Cc: stable@vger.kernel.org
Fixes: 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 'kernel/tsacct.c')
0 files changed, 0 insertions, 0 deletions