1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0 3 # description: trace_marker trigger - test histogram trigger 4 # requires: set_event events/ftrace/print/trigger events/ftrace/print/hist 5 # flags: instance 6 7 fail() { #msg 8 echo $1 9 exit_fail 10 } 11 12 echo "Test histogram trace_marker trigger" 13 14 echo 'hist:keys=common_pid' > events/ftrace/print/trigger 15 for i in `seq 1 10` ; do echo "hello" > trace_marker; done 16 grep 'hitcount: *10$' events/ftrace/print/hist > /dev/null || \ 17 fail "hist trigger did not trigger correct times on trace_marker" 18 19 exit 0
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.