xref: /linux/tools/testing/selftests/ftrace/test.d/tracer/wakeup.tc (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3# description: Test wakeup tracer
4# requires: wakeup:tracer chrt:program
5
6echo wakeup > current_tracer
7echo 1 > tracing_on
8echo 0 > tracing_max_latency
9
10: "Wakeup higher priority task"
11chrt -f 5 sleep 1
12
13echo 0 > tracing_on
14grep '+ \[[[:digit:]]*\]' trace
15grep '==> \[[[:digit:]]*\]' trace
16
17