-
Notifications
You must be signed in to change notification settings - Fork 349
logger: add ktime and date in header #4105
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
Need to be more flexible for changes like thesofproject/sof#4086 or thesofproject/sof#4105 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
|
check-sof-logger fails all across https://sof-ci.01.org/sofpr/PR4105/build8853/devicetest/ because it expects the |
Need to be more flexible for changes like thesofproject/sof#4086 or thesofproject/sof#4105 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
|
SOFCI TEST |
|
Some tests failed in https://sof-ci.01.org/sof-pr-viewer/#/build/PR4105/build6363075 but only on ICL_SSP and not all tests running on ICL_SSP so these failures do not seem related to this pure header change. In fact this PR cannot have caused these tests to fail because they... worryingly do not build sof-logger from the latest source but use some other, more static version instead! You can tell by opening
|
|
After merging thesofproject/sof-test#668 , https://sof-ci.01.org/sofpr/PR4105/build8854/devicetest/ is all green and the outputs look good. |
lgirdwood
left a comment
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.
Bw, just confirming that this will still allow @ktrzcinx do do a diff ? i.e. we can turn the date off.
|
Very good question. I thought about this and assumed a single line difference for identical logs was a "feature" but thinking about it a bit more now I see these new timestamps could complicate some automated diff / scripting. If anyone has ever used the |
Every log file should have a date.
ktime can be related to the TIMESTAMP column. It is especially useful to
spot logs delayed or stuck.
Some logs use ktime while others use a date and it can be sometimes
difficult to connect them with one another. This header can help.
Before:
TIMESTAMP (us) DELTA C# COMPONENT CONTENT
[ 5120116529] ( 0) c0 dma-trace ERROR FW ABI 0x3012001 ...
After:
TIMESTAMP (us) DELTA C# COMPONENT \
CONTENT ktime=5132.663s @ 2021-04-27 14:36:09 -0700 PDT
[ 5120116529] ( 0) c0 dma-trace ERROR FW ABI 0x3012001 ...
Signed-off-by: Marc Herbert <marc.herbert@intel.com>
83fdd11 to
c8a24fd
Compare
|
Done, this can now be turned off with |
then there is me who fails to check |
|
The checktree regression seen in https://github.com/thesofproject/sof/pull/4105/checks?check_run_id=2461722482 has been introduced by #4111 , unrelated. The rtcwake failure in https://sof-ci.01.org/sofpr/PR4105/build8867/devicetest/?model=APL_UP2_NOCODEC&testcase=check-suspend-resume-with-capture is very interesting (and unrelated) |
Every log file should have a date.
ktime can be related to the TIMESTAMP column. It is especially useful to
spot logs delayed or stuck.
Some logs use ktime while others use a date and it can be sometimes
difficult to connect them with one another. This header can help.
Before:
After:
Signed-off-by: Marc Herbert marc.herbert@intel.com