2 # description: Test creation and deletion of trace instances while setting an event
4 if [ ! -d instances
] ; then
5 echo "no instance directory with this kernel"
18 # we don't want to fail on error
25 if [ $result -ne 0 ]; then
26 echo "instance rmdir not supported"
32 mkdir foo
2> /dev
/null
33 rmdir foo
2> /dev
/null
39 cat foo
/trace
1> /dev
/null
2>&1
45 echo 1 > foo
/events
/sched
/sched_switch
67 echo "Wait for processes to finish"
69 echo "all processes finished, wait for cleanup"
76 fail
"foo still exists"
123 echo "Wait for processes to finish"
124 wait $p1 $p2 $p3 $p4 $p5
125 echo "all processes finished, wait for cleanup"
132 fail
"instance $d still exists"