Skip to content

Commit 7f3eb5a

Browse files
committed
hijack.sh: make late logger config changes to nudge stuck DMA traces
There are bugs that cause DMA drops and the last few lines to get stuck somewhere. Changing the logger configuration and waiting for 1 second seems to be enough to nudge the system and force it to DMA a bit more logs: hopefully all the logs relevant to the current test. Running this logger configuration command twice makes it very easy to observe the stuck lines bug: the "ipc" logs corresponding to this -F command will appear _only once_ at the end of the slogger.txt DMA trace! Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent d26a46c commit 7f3eb5a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

case-lib/hijack.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ function func_exit_handler()
3131
sleep 1s
3232
}
3333

34+
# There are bugs that cause DMA drops and the last few lines to
35+
# get stuck somewhere. This hack seems to be enough to nudge the
36+
# system and force it to DMA a bit more logs: hopefully all the
37+
# logs relevant to the current test.
38+
for i in 1 2; do
39+
# Running this twice makes it very easy to observe the stuck
40+
# lines bug: the "ipc" logs corresponding to this -F command
41+
# will appear _only once_ at the end of the slogger.txt DMA
42+
# trace!
43+
sudo "$SOFLOGGER" -l "$(find_ldc_file)" -F info=tone > /dev/null
44+
done
45+
# We _also_ need to wait for the trace_work() thread to run;
46+
# BOTH are needed. The bug is not just a delay.
47+
sleep 1
48+
3449
local loggerBin wcLog; loggerBin=$(basename "$SOFLOGGER")
3550
# We need this to avoid the confusion of a "Terminated" message
3651
# without context.

0 commit comments

Comments
 (0)