2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test stacktrace-trigger
10 if [ ! -f set_event
-o ! -d events
/sched
]; then
11 echo "event tracing is not supported"
15 if [ ! -f events
/sched
/sched_process_fork
/trigger
]; then
16 echo "event trigger is not supported"
20 FEATURE
=`grep stacktrace events/sched/sched_process_fork/trigger`
21 if [ -z "$FEATURE" ]; then
22 echo "stacktrace trigger is not supported"
26 echo "Test stacktrace tigger"
28 echo 0 > options
/stacktrace
29 echo 'stacktrace' > events
/sched
/sched_process_fork
/trigger
31 grep "<stack trace>" trace
> /dev
/null || \
32 fail
"stacktrace trigger on sched_process_fork did not work"
36 echo "Test stacktrace semantic errors"
38 ! echo "stacktrace:foo" > events
/sched
/sched_process_fork
/trigger
39 echo "stacktrace" > events
/sched
/sched_process_fork
/trigger
40 ! echo "stacktrace" > events
/sched
/sched_process_fork
/trigger