summaryrefslogtreecommitdiffstats
path: root/kernel/signal.c
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@kernel.org>2019-06-28 12:40:20 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-01-28 23:16:27 -0500
commitb527b638fd63ba791dc90a0a6e9a3035b10df52b (patch)
treec67dccdfd905a89ab364435840c54a462ab720cb /kernel/signal.c
parentd0ce47cb993ec88d293bac7b51ba2d97ea99594c (diff)
downloadlinux-b527b638fd63ba791dc90a0a6e9a3035b10df52b.tar.gz
linux-b527b638fd63ba791dc90a0a6e9a3035b10df52b.tar.bz2
linux-b527b638fd63ba791dc90a0a6e9a3035b10df52b.zip
tracing: Simplify assignment parsing for hist triggers
In the process of adding better error messages for sorting, I realized that strsep was being used incorrectly and some of the error paths I was expecting to be hit weren't and just fell through to the common invalid key error case. It also became obvious that for keyword assignments, it wasn't necessary to save the full assignment and reparse it later, and having a common empty-assignment check would also make more sense in terms of error processing. Change the code to fix these problems and simplify it for new error message changes in a subsequent patch. Link: http://lkml.kernel.org/r/1c3ef0b6655deaf345f6faee2584a0298ac2d743.1561743018.git.zanussi@kernel.org Fixes: e62347d24534 ("tracing: Add hist trigger support for user-defined sorting ('sort=' param)") Fixes: 7ef224d1d0e3 ("tracing: Add 'hist' event trigger command") Fixes: a4072fe85ba3 ("tracing: Add a clock attribute for hist triggers") Reported-by: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/signal.c')
0 files changed, 0 insertions, 0 deletions