1ab16714fSTomas Glozar#!/bin/bash 2ab16714fSTomas Glozar# SPDX-License-Identifier: GPL-2.0 3ab16714fSTomas Glozarsource tests/engine.sh 4ab16714fSTomas Glozartest_begin 5ab16714fSTomas Glozar 6ab16714fSTomas Glozarset_timeout 2m 7ab16714fSTomas Glozar 8ab16714fSTomas Glozarcheck "verify help page" \ 9*892ae5f8STomas Glozar "hwnoise --help" 0 "summary of hardware-related noise" 10ab16714fSTomas Glozarcheck "detect noise higher than one microsecond" \ 11*892ae5f8STomas Glozar "hwnoise -c 0 -T 1 -d 5s -q" 0 12ab16714fSTomas Glozarcheck "set the automatic trace mode" \ 13*892ae5f8STomas Glozar "hwnoise -a 5 -d 10s" 2 "osnoise hit stop tracing" 14ab16714fSTomas Glozarcheck "set scheduling param to the osnoise tracer threads" \ 1504f83716STomas Glozar "hwnoise -P F:1 -c 0 -r 900000 -d 10s -q" 16ab16714fSTomas Glozarcheck "stop the trace if a single sample is higher than 1 us" \ 17*892ae5f8STomas Glozar "hwnoise -s 1 -T 1 -t -d 10s" 2 "Saving trace to osnoise_trace.txt" 18ab16714fSTomas Glozarcheck "enable a trace event trigger" \ 19*892ae5f8STomas Glozar "hwnoise -t -e osnoise:irq_noise --trigger=\"hist:key=desc,duration:sort=desc,duration:vals=hitcount\" -d 10s" \ 20*892ae5f8STomas Glozar 0 "Saving event osnoise:irq_noise hist to osnoise_irq_noise_hist.txt" 21ab16714fSTomas Glozar 22ab16714fSTomas Glozartest_end 23