Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Jun 30, 2023

3 commits

Preparation for #1075, only one small functional change: counting the number of lines in mtrace.txt

marc-hb added 3 commits June 29, 2023 19:46
Preempts any confusion with kernel or other logs files.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Add a new clogfile=$1 parameter to func_mtrace_collect() to make it
consistent with the older func_sof_logger_collect() and define all
logfile names in the same place.

Also log the logfile name and stop abusing bash leniency that has let us
treat and expand $mtraceCmd like an array even if it's not. Fixes
initial commit c0729e8 ("Enable mtrace") which merely copied the
logging code from the other func_sof_logger_collect() function which
does use an array.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Now that $logfile is defined for mtrace too, run the same check on it.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb marked this pull request as ready for review June 30, 2023 06:17
@marc-hb marc-hb requested a review from a team as a code owner June 30, 2023 06:17
Copy link
Contributor

@fredoh9 fredoh9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Approved.

One curious thing, I checked the results, one of failure in MTL test. mtrace lines is 178 but nlines=176. Not a big deal but looks first and last lines are NOT new lines?

reference link: planresultdetail/28427?model=MTLP_RVP_NOCODEC&testcase=check-suspend-resume-with-capture-5

Copy link
Contributor

@keqiaozhang keqiaozhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marc-hb
Copy link
Collaborator Author

marc-hb commented Jun 30, 2023

thanks for the very prompt reviews!

mtrace lines is 178 but nlines=176.

There is probably something funny the web interface does. The number comes from a bare wc -l so that bit is to simple to be buggy.

@marc-hb marc-hb merged commit be4b6f6 into thesofproject:main Jun 30, 2023
@marc-hb marc-hb deleted the prepare-catch-fw-errors branch June 30, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants