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