diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2019-03-31 18:48:23 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-04-08 09:22:50 -0400 |
commit | 4eab1cc461a6e820eddf88ac63eed98793c96a7c (patch) | |
tree | 325557248ba0c635b3f053511d395016558eef0b /tools | |
parent | 0ae8dde9d7b62b40fb16b5d3feef467604b9a771 (diff) | |
download | linux-4eab1cc461a6e820eddf88ac63eed98793c96a7c.tar.gz linux-4eab1cc461a6e820eddf88ac63eed98793c96a7c.tar.bz2 linux-4eab1cc461a6e820eddf88ac63eed98793c96a7c.zip |
selftests/ftrace: Add tracing/error_log testcase
Add a testcase verifying basic tracing/error_log functionality.
Link: http://lkml.kernel.org/r/bf1c0d47a24672df945331462682d96296d1ab28.1554072478.git.tom.zanussi@linux.intel.com
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc b/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc new file mode 100644 index 000000000000..021c03fd885d --- /dev/null +++ b/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc @@ -0,0 +1,19 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 +# description: ftrace - test tracing error log support + +fail() { #msg + echo $1 + exit_fail +} + +# event tracing is currently the only ftrace tracer that uses the +# tracing error_log, hence this check +if [ ! -f set_event ]; then + echo "event tracing is not supported" + exit_unsupported +fi + +ftrace_errlog_check 'event filter parse error' '((sig >= 10 && sig < 15) || dsig ^== 17) && comm != bash' 'events/signal/signal_generate/filter' + +exit 0 |