WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / tracer / wakeup.tc
blob11be10e1bf966a9eafbe41f72ea58cec85399ed4
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: Test wakeup tracer
4 # requires: wakeup:tracer
6 if ! which chrt ; then
7 echo "chrt is not found. This test requires nice command."
8 exit_unresolved
9 fi
11 echo wakeup > current_tracer
12 echo 1 > tracing_on
13 echo 0 > tracing_max_latency
15 : "Wakeup higher priority task"
16 chrt -f 5 sleep 1
18 echo 0 > tracing_on
19 grep '+ \[[[:digit:]]*\]' trace
20 grep '==> \[[[:digit:]]*\]' trace