WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / trigger / trigger-trace-marker-hist.tc
blob68f3af9d99102649b6191fae008f9573d0d4028b
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
7 fail() { #msg
8 echo $1
9 exit_fail
12 echo "Test histogram trace_marker trigger"
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"
19 exit 0