2 # description: event trigger - test snapshot-trigger
16 if [ ! -f set_event
-o ! -d events
/sched
]; then
17 echo "event tracing is not supported"
21 if [ ! -f events
/sched
/sched_process_fork
/trigger
]; then
22 echo "event trigger is not supported"
29 FEATURE
=`grep snapshot events/sched/sched_process_fork/trigger`
30 if [ -z "$FEATURE" ]; then
31 echo "snapshot trigger is not supported"
35 echo "Test snapshot tigger"
37 echo 1 > events
/sched
/sched_process_fork
/enable
39 echo 'snapshot:1' > events
/sched
/sched_process_fork
/trigger
41 grep sched_process_fork snapshot
> /dev
/null || \
42 fail
"snapshot trigger on sched_process_fork did not work"
46 echo 0 > events
/sched
/sched_process_fork
/enable
48 echo "Test snapshot semantic errors"
50 ! echo "snapshot+1" > events
/sched
/sched_process_fork
/trigger
51 echo "snapshot" > events
/sched
/sched_process_fork
/trigger
52 ! echo "snapshot" > events
/sched
/sched_process_fork
/trigger