xref: /linux/tools/tracing/rtla/tests/timerlat.t (revision ab16714fcb0614c1bcedfa8fa3e5dbf5e032cff2)
1*ab16714fSTomas Glozar#!/bin/bash
2*ab16714fSTomas Glozar# SPDX-License-Identifier: GPL-2.0
3*ab16714fSTomas Glozarsource tests/engine.sh
4*ab16714fSTomas Glozartest_begin
5*ab16714fSTomas Glozar
6*ab16714fSTomas Glozarset_timeout 2m
7*ab16714fSTomas Glozar
8*ab16714fSTomas Glozarcheck "verify help page" \
9*ab16714fSTomas Glozar	"timerlat --help"
10*ab16714fSTomas Glozarcheck "verify -s/--stack" \
11*ab16714fSTomas Glozar	"timerlat top -s 3 -T 10 -t"
12*ab16714fSTomas Glozarcheck "verify -P/--priority" \
13*ab16714fSTomas Glozar	"timerlat top -P F:1 -c 0 -d 1M -q"
14*ab16714fSTomas Glozarcheck "test in nanoseconds" \
15*ab16714fSTomas Glozar	"timerlat top -i 2 -c 0 -n -d 30s"
16*ab16714fSTomas Glozarcheck "set the automatic trace mode" \
17*ab16714fSTomas Glozar	"timerlat top -a 5 --dump-tasks"
18*ab16714fSTomas Glozarcheck "print the auto-analysis if hits the stop tracing condition" \
19*ab16714fSTomas Glozar	"timerlat top --aa-only 5"
20*ab16714fSTomas Glozarcheck "disable auto-analysis" \
21*ab16714fSTomas Glozar	"timerlat top -s 3 -T 10 -t --no-aa"
22*ab16714fSTomas Glozarcheck "verify -c/--cpus" \
23*ab16714fSTomas Glozar	"timerlat hist -c 0 -d 30s"
24*ab16714fSTomas Glozarcheck "hist test in nanoseconds" \
25*ab16714fSTomas Glozar	"timerlat hist -i 2 -c 0 -n -d 30s"
26*ab16714fSTomas Glozar
27*ab16714fSTomas Glozartest_end
28