2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test traceon/off trigger
4 # requires: set_event events/sched/sched_process_fork/trigger
11 echo "Test traceoff trigger"
13 echo 'traceoff' > events
/sched
/sched_process_fork
/trigger
15 if [ `cat tracing_on` -ne 0 ]; then
16 fail
"traceoff trigger on sched_process_fork did not work"
21 echo "Test traceon trigger"
23 echo 'traceon' > events
/sched
/sched_process_fork
/trigger
25 if [ `cat tracing_on` -ne 1 ]; then
26 fail
"traceoff trigger on sched_process_fork did not work"
31 echo "Test semantic error for traceoff/on trigger"
32 ! echo 'traceoff:badparam' > events
/sched
/sched_process_fork
/trigger
33 ! echo 'traceoff+0' > events
/sched
/sched_process_fork
/trigger
34 echo 'traceon' > events
/sched
/sched_process_fork
/trigger
35 ! echo 'traceon' > events
/sched
/sched_process_fork
/trigger
36 ! echo 'traceoff' > events
/sched
/sched_process_fork
/trigger