Skip to content

Commit

Permalink
multiple-pipeline: add debugging when pkill fails
Browse files Browse the repository at this point in the history
Sometimes pkill seems to fail terminating aplay and arecord
processes. Add a system request to check state of those processes to
investigate why they couldn't be killed.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh authored and marc-hb committed Jul 2, 2024
1 parent ae2f9ed commit 70c9d34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test-case/multiple-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ do
pkill -9 aplay || true
sleep 1 # try not to pollute the next iteration

if pgrep arecord || pgrep aplay; then
printf '%c' 't' | sudo tee /proc/sysrq-trigger > /dev/null
sleep 1
fi

# check kernel log for each iteration to catch issues
sof-kernel-log-check.sh "$KERNEL_CHECKPOINT" || die "Caught error in kernel log"
done
Expand Down

0 comments on commit 70c9d34

Please sign in to comment.