Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib.sh: fix recent check_error_in_file() . Exclude BSW #946

Merged
merged 2 commits into from
Aug 5, 2022

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Jul 29, 2022

2 commits. Main one:

Use -w to catch the words 'ERR' and 'ERROR' and avoid unrelated words
like 'ovERRuns' (unless of course they're prefixed with ERROR)

Fixes recent commit 87aeb4d ("check-sof-logger: catch ERROR in
firmware traces and fail")

Add -i: no reason to catch errors only in upper case.

Log the grep commands using set -x

marc-hb added 2 commits July 29, 2022 14:49
Add bsw next to byt and bdw. BSW has a regular:

 ERROR dtrace_add_event(): number of dropped logs = 8

... too, see Intel daily test 14304 and before.

No time to spend on BSW errors that have always been there.

Signed-off-by: Marc Herbert <[email protected]>
Use -w to catch the words 'ERR' and 'ERROR' and avoid unrelated words
like 'ovERRuns' (unless of course they're prefixed with ERROR)

Fixes recent commit 87aeb4d ("check-sof-logger: catch ERROR in
firmware traces and fail")

Add -i: no reason to catch errors only in upper case.

Log the grep commands using set -x

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb
Copy link
Collaborator Author

marc-hb commented Jul 29, 2022

A very strange

no such file no /sys/kernel/debug/sof/trace

... on one device in https://sof-ci.01.org/softestpr/PR946/build114/devicetest while /sys/kernel/debug/sof/etrace was there!?

Not caused by this PR.

+ 2 unrelated suspend/resume failures

@marc-hb marc-hb marked this pull request as ready for review July 29, 2022 22:21
@marc-hb marc-hb requested a review from a team as a code owner July 29, 2022 22:21
@marc-hb
Copy link
Collaborator Author

marc-hb commented Jul 29, 2022

SOFCI TEST

@marc-hb
Copy link
Collaborator Author

marc-hb commented Jul 30, 2022

@marc-hb marc-hb marked this pull request as draft July 30, 2022 03:41
@greg-intel
Copy link
Contributor

Is the search case sensitive?

# -B 2 shows the header line when the first etrace message is an ERROR
# -A 1 shows whether the ERROR is last or not.
if (set -x
grep -B 2 -A 1 -i -w -e 'ERR' -e 'ERROR' "$1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it weird that I find "-B2 -A1" more legible?

@marc-hb
Copy link
Collaborator Author

marc-hb commented Aug 5, 2022

SOFCI TEST

@marc-hb marc-hb marked this pull request as ready for review August 5, 2022 14:17
@marc-hb
Copy link
Collaborator Author

marc-hb commented Aug 5, 2022

@marc-hb marc-hb merged commit d5ac94b into thesofproject:main Aug 5, 2022
@marc-hb marc-hb deleted the check-error-fix branch August 5, 2022 14:20
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.

2 participants