1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3# description: Test wakeup RT tracer
4# requires: wakeup_rt:tracer chrt:program
5
6echo wakeup_rt > current_tracer
7echo 1 > tracing_on
8echo 0 > tracing_max_latency
9
10: "Wakeup a realtime task"
11chrt -f 5 sleep 1
12
13echo 0 > tracing_on
14grep "+ \[[[:digit:]]*\]" trace
15grep "==> \[[[:digit:]]*\]" trace
16
17