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