mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 19:12:29 -04:00
Use relative path to trigger file instead of absolute debugfs path, because if the user uses tracefs instead of debugfs, it can be mounted at /sys/kernel/tracing. Anyway, since the ftracetest is designed to be run at the tracing directory, user doesn't need to use absolute path. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
31 lines
754 B
Bash
31 lines
754 B
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# description: event trigger - test inter-event histogram trigger expected fail actions
|
|
|
|
fail() { #msg
|
|
echo $1
|
|
exit_fail
|
|
}
|
|
|
|
if [ ! -f set_event ]; then
|
|
echo "event tracing is not supported"
|
|
exit_unsupported
|
|
fi
|
|
|
|
if [ ! -f snapshot ]; then
|
|
echo "snapshot is not supported"
|
|
exit_unsupported
|
|
fi
|
|
|
|
grep -q "snapshot()" README || exit_unsupported # version issue
|
|
|
|
echo "Test expected snapshot action failure"
|
|
|
|
echo 'hist:keys=comm:onmatch(sched.sched_wakeup).snapshot()' >> events/sched/sched_waking/trigger && exit_fail
|
|
|
|
echo "Test expected save action failure"
|
|
|
|
echo 'hist:keys=comm:onmatch(sched.sched_wakeup).save(comm,prio)' >> events/sched/sched_waking/trigger && exit_fail
|
|
|
|
exit_xfail
|