2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test inter-event histogram trigger expected fail actions
10 if [ ! -f set_event
]; then
11 echo "event tracing is not supported"
15 if [ ! -f snapshot
]; then
16 echo "snapshot is not supported"
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