Linux-libre 5.7.5-gnu
[librecmc/linux-libre.git] / tools / testing / selftests / ftrace / test.d / ftrace / tracing-error-log.tc
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: ftrace - test tracing error log support
4
5 fail() { #msg
6     echo $1
7     exit_fail
8 }
9
10 # event tracing is currently the only ftrace tracer that uses the
11 # tracing error_log, hence this check
12 if [ ! -f set_event ]; then
13     echo "event tracing is not supported"
14     exit_unsupported
15 fi
16
17 [ -f error_log ] || exit_unsupported
18
19 ftrace_errlog_check 'event filter parse error' '((sig >= 10 && sig < 15) || dsig ^== 17) && comm != bash' 'events/signal/signal_generate/filter'
20
21 exit 0