2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test stacktrace-trigger
4 # requires: set_event events/sched/sched_process_fork/trigger
11 FEATURE
=`grep stacktrace events/sched/sched_process_fork/trigger`
12 if [ -z "$FEATURE" ]; then
13 echo "stacktrace trigger is not supported"
17 echo "Test stacktrace trigger"
19 echo 0 > options
/stacktrace
20 echo 'stacktrace' > events
/sched
/sched_process_fork
/trigger
22 grep "<stack trace>" trace
> /dev
/null || \
23 fail
"stacktrace trigger on sched_process_fork did not work"
27 echo "Test stacktrace semantic errors"
29 ! echo "stacktrace:foo" > events
/sched
/sched_process_fork
/trigger
30 echo "stacktrace" > events
/sched
/sched_process_fork
/trigger
31 ! echo "stacktrace" > events
/sched
/sched_process_fork
/trigger