#!/bin/bash # xclock is the only other X11 client that spontaneously may # put something to the screen - so let's kill it to not # interfere with the test # killall xclock # enable DPM, making the 3-fps-video replay unstable: echo "auto" >/sys/class/drm/card0/device/power_dpm_force_performance_level echo "starting trace-cmd" trace-cmd start -e dma_fence -e gpu_scheduler \ -e amdgpu -v -e "amdgpu:amdgpu_mm_rreg" \ -e "amdgpu:amdgpu_mm_wreg" -e "amdgpu:amdgpu_iv" & cat /sys/kernel/debug/tracing/trace_pipe & sleep 5 echo "" echo "starting 3-fps-video test" ./othan_test.sh >/dev/null 2>/dev/null "$LED" sleep 0.1 echo 0 >"$LED" sleep 0.4 done exit 0