2 # SPDX-License-Identifier: GPL-2.0
3 # description: trace_marker trigger - test snapshot trigger
4 # requires: set_event snapshot events/ftrace/print/trigger
16 cat $file |
while read line
; do
17 comment
=`echo $line | sed -e 's/^#//'`
18 if [ "$line" != "$comment" ]; then
21 echo "testing $line for >$x<"
22 match
=`echo $line | sed -e "s/>$x<//"`
23 if [ "$line" = "$match" ]; then
24 fail
"$line does not have >$x< in it"
30 echo "Test snapshot trace_marker trigger"
32 echo 'snapshot' > events
/ftrace
/print
/trigger
34 # make sure the snapshot is allocated
36 grep -q 'Snapshot is allocated' snapshot
38 for i
in `seq 1 10` ; do echo "hello >$i<" > trace_marker
; done