xref: /linux/tools/testing/selftests/ftrace/test.d/tracer/wakeup.tc (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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