Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 59
[RFC] use journalctl for kernel log#468
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
9828d6699e1a970d8bd70e69b36b23fa1eed4de517e12e5ee0a022272fffcb7d3b271462a95c68db6f8c40b6cb862c98eb91e411643c3ca6File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -32,27 +32,27 @@ loop_cnt=${OPT_VALUE_lst['l']} | ||
| [[ ! "$(sof-kernel-dump.sh|grep 'sof-audio'|grep 'Firmware debug build')" ]] && dlogw "${BASH_SOURCE[0]} need debug version firmware" && exit 2 | ||
| func_lib_setup_kernel_last_line | ||
| func_lib_setup_kernel_last_timestamp | ||
| func_lib_check_sudo | ||
| dlogi "Check sof debug fs environment" | ||
| [[ "$(sudo file $ipc_flood_dfs|grep 'No such file')" ]] && dlogw "${BASH_SOURCE[0]} need $ipc_flood_dfs to run the test case" && exit 2 | ||
| dlogi "Checking ipc flood test!" | ||
| # cleanup dmesg buffer before test | ||
| sudo dmesg -c > /dev/null | ||
| for i in $(seq 1 $loop_cnt) | ||
| do | ||
| # cleanup dmesg buffer for each iteration | ||
| sudo dmesg -c > /dev/null | ||
| # set up timestamp for each iteration | ||
| func_lib_setup_kernel_last_timestamp | ||
| dlogi "===== [$i/$loop_cnt] loop Begin =====" | ||
| dlogc "sudo bash -c 'echo $lpc_loop_cnt > $ipc_flood_dfs'" | ||
| sudo bash -c "'echo $lpc_loop_cnt > $ipc_flood_dfs'" | ||
| sof-kernel-log-check.sh 0 || die "Catched error in dmesg" | ||
| # check kernel log for each iteration to catch issues | ||
| sof-kernel-log-check.sh $KERNEL_LAST_TIMESTAMP || die "Catch error in kernel log" | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same comment here. lets fix it everywhere | ||
| dlogi "Dumping test logs!" | ||
| dmesg | grep "IPC Flood count" -A 2 | ||
| done | ||
| sof-kernel-log-check.sh $KERNEL_LAST_LINE | ||
| exit 0 | ||
| done | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -75,9 +75,10 @@ esac | ||
| [[ -z $file_name ]] && file_name=$dummy_file | ||
| func_pipeline_export $tplg "type:$test_mode & ${OPT_VALUE_lst['S']}" | ||
| func_lib_setup_kernel_last_line | ||
| for idx in $(seq 0 $(expr $PIPELINE_COUNT - 1)) | ||
| do | ||
| # set up timestamp for each iteration | ||
| func_lib_setup_kernel_last_timestamp | ||
| channel=$(func_pipeline_parse_value $idx channel) | ||
| rate=$(func_pipeline_parse_value $idx rate) | ||
| fmt=$(func_pipeline_parse_value $idx fmt) | ||
| @@ -122,9 +123,6 @@ END | ||
| [[ $? -ne 0 ]] && dlogw "Kill process catch error" | ||
| exit $ret | ||
| fi | ||
| # sof-kernel-log-check script parameter number is 0/Non-Number will force check from dmesg | ||
| sof-kernel-log-check.sh 0 || die "Catch error in dmesg" | ||
| # check kernel log for each iteration to catch issues | ||
| sof-kernel-log-check.sh $KERNEL_LAST_TIMESTAMP || die "Catch error in kernel log" | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Caught error instead of Catch error | ||
| done | ||
| sof-kernel-log-check.sh $KERNEL_LAST_LINE | ||
| exit $? | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
Is this still required?