staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / trigger / trigger-trace-marker-hist.tc
blobab6bedb257367684438d1c9a6f03d271c0d8edc9
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: trace_marker trigger - test histogram trigger
4 # flags: instance
6 fail() { #msg
7 echo $1
8 exit_fail
11 if [ ! -f set_event ]; then
12 echo "event tracing is not supported"
13 exit_unsupported
16 if [ ! -d events/ftrace/print ]; then
17 echo "event trace_marker is not supported"
18 exit_unsupported
21 if [ ! -f events/ftrace/print/trigger ]; then
22 echo "event trigger is not supported"
23 exit_unsupported
26 if [ ! -f events/ftrace/print/hist ]; then
27 echo "hist trigger is not supported"
28 exit_unsupported
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"
38 exit 0