2 # SPDX-License-Identifier: GPL-2.0
3 # description: trace_marker trigger - test histogram trigger
11 if [ ! -f set_event
]; then
12 echo "event tracing is not supported"
16 if [ ! -d events
/ftrace
/print
]; then
17 echo "event trace_marker is not supported"
21 if [ ! -f events
/ftrace
/print
/trigger
]; then
22 echo "event trigger is not supported"
26 if [ ! -f events
/ftrace
/print
/hist
]; then
27 echo "hist trigger is not supported"
31 echo "Test histogram trace_marker tigger"
33 echo 'hist:keys=common_pid' > events
/ftrace
/print
/trigger
34 for i
in `seq 1 10` ; do echo "hello" > trace_marker
; done
35 grep 'hitcount: *10$' events
/ftrace
/print
/hist
> /dev
/null || \
36 fail
"hist trigger did not trigger correct times on trace_marker"