-
Notifications
You must be signed in to change notification settings - Fork 59
journalctl patchset version 5 #529
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
Conversation
remove the redundant kernel log check for all case. enable kernel log check for each iteration. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
remove the redundant kernel log check for all case. enable kernel log check for each iteration. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
remove the redundant kernel log check for all case. enable kernel log check for each iteration. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
9f79bbb to
e8fadd1
Compare
remove the redundant kernel log check for all case. enable kernel log check for each iteration. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
…iteration remove the redundant kernel log check for all case. enable kernel log check for each iteration. also do some clean up for this script Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
e8fadd1 to
9f78af5
Compare
…teration remove the redundant kernel log check for all case. enable kernel log check for each iteration. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
remove the redundant kernel log check for all case. enable kernel log check for each iteration. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
…tion remove the redundant kernel log check for all case. enable kernel log check for each iteration. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
remove the redundant kernel log check for all case. enable kernel log check for each iteration. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
…eration remove the redundant kernel log check for all case. enable kernel log check for each iteration. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
add some style options for the journalctl to unify all journalctl output format Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Directly use journalctl in the testcase to avoid kernel log missing issues. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
use journalctl by default for any kernel log reader usage. Also add headter for the file. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add path for the sof-dump-status.py to avoid error: sof-dump-status.py: command not found Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
use journalctl to get kernl logs. use timestamp as checkpoint to split logs for each test case. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add common error logs from systemd, initramfs, atkbd, i801_smbus, ata3, genirq, DMAR, dw_dmac, proc_thermal, SDWm, touch pad Those error level logs did not break functionality of the DUTs. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
|
SOFCI TEST |
|
SOF CI test passed, merge now. Track issues in following tests. |
This wasn't really a problem as long as sof-kernel-log-check.sh was reading /var/log/kernel.log, which just changed in PR thesofproject#529 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
|
For the record there a was an incomplete (and partially ignored) review in #509 and in some other PRs before that. |
This was apparently missed in thesofproject#529 Together with thesofproject#523 this makes it identical to multiple-pipeline-capture.sh again. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
| echo "$(date -u '+%Y-%m-%d %T %Z')" "[ERROR]" "Caught dmesg error" | ||
| # below are new error level kernel logs from journalctl --priority=err | ||
| # that did not influence system and can be ignored | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many of these errors are kernel errors. Why ignoring them was not required before / why is it required now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Answering my own question: because they don't have any "error" keyword in the message
|
|
||
| declare -p cmd | ||
| # check priority err for error message | ||
| [[ "$ignore_str" ]] && err=$($cmd --priority=err | grep -vE "$ignore_str") || $($cmd --priority=err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last part of this line is pretty clearly wrong. shellcheck reported this at the very bottom of https://travis-ci.org/github/thesofproject/sof-test/jobs/744836564 but of course shellcheck output is unreadable for such "big bang" pull requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will send a PR to fix this.
This wasn't really a problem as long as sof-kernel-log-check.sh was reading /var/log/kernel.log, which just changed in PR #529 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
TODO:
kernel log dump and some test case dmesg usage.