Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions tools/sof-kernel-log-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,15 @@ begin_timestamp=${1:-0}
declare ignore_str

# pwd resolves relative paths
my_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
platform=$("$my_dir"/sof-dump-status.py -p)
test_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)
platform=$("$test_dir"/tools/sof-dump-status.py -p)

# shellcheck source=case-lib/lib.sh
source "$test_dir"/case-lib/lib.sh

# TODO explain
# The first string cannot start by |

# TODO explain why we ignore this one and where
ignore_str='error: debugfs write failed to idle -16'

# CML Helios known issue related with xhci_hcd
Expand Down Expand Up @@ -312,11 +316,10 @@ ignore_str="$ignore_str"'|elan_i2c i2c-ELAN0000:.*: invalid report id data'
ignore_str="$ignore_str"'|rt700 sdw:.:.*:700:.: Bus clash detected'

# confirm begin_timestamp is in UNIX timestamp format, otherwise search full log
journalctlflag="-k -q --no-pager --utc --output=short-monotonic --no-hostname"
if [[ $begin_timestamp =~ ^[0-9]{10} ]]; then
cmd="journalctl $journalctlflag --since=@$begin_timestamp"
cmd="journalctl_cmd --since=@$begin_timestamp"
else
cmd="journalctl $journalctlflag"
cmd="journalctl_cmd"
fi

declare -p cmd
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe it is also time to remove the debug log here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

#529 is less than one week old so I would rather wait a bit longer.

Expand Down