staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / trigger / inter-event / trigger-action-hist-xfail.tc
blob1221240f8cf6ed2f5975b63a70b194aa965c617a
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test inter-event histogram trigger expected fail actions
5 fail() { #msg
6 echo $1
7 exit_fail
10 if [ ! -f set_event ]; then
11 echo "event tracing is not supported"
12 exit_unsupported
15 if [ ! -f snapshot ]; then
16 echo "snapshot is not supported"
17 exit_unsupported
20 grep -q "snapshot()" README || exit_unsupported # version issue
22 echo "Test expected snapshot action failure"
24 echo 'hist:keys=comm:onmatch(sched.sched_wakeup).snapshot()' >> /sys/kernel/debug/tracing/events/sched/sched_waking/trigger && exit_fail
26 echo "Test expected save action failure"
28 echo 'hist:keys=comm:onmatch(sched.sched_wakeup).save(comm,prio)' >> /sys/kernel/debug/tracing/events/sched/sched_waking/trigger && exit_fail
30 exit_xfail