#!/bin/bash if test "x$1" = "x" ; then rm -f gpu_result.txt ./gpu_debug.sh norecurse 2>&1 >gpu_result.txt sync LED=$(echo /sys/class/leds/input*numlock/brightness) while true ; do echo 1 >"$LED" sleep 0.1 echo 0 >"$LED" sleep 0.4 done exit 0 fi rm -f gpu_trace.dat* echo "starting trace" 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" & echo "starting Othan test" ./othan_test.sh >/dev/null 2>/dev/null