Skip to content

kernel/mem_leak_checker: Disable km4 log print when mem leak checking #6737

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jeongarmy
Copy link
Contributor

A thread of mem leak checker has the highest priority to check all heaps. At this time, log thread can not run and print logs from km4 because of mem leak checker. Then some error logs will be shown like below.
WARN: KM4 logbuf full, dropped log!
WARN: KM4 logbuf full, dropped log!

So we set reboot reason temporaily while checking mem leaks to avoid km4 log print.

…_SPECIFIC6

Define new board specific reboot reason for another usages.
… for rtl8730e

A thread of mem leak checker has the highest priority to check all heaps.
At this time, log thread can not run and print logs from km4 because of mem leak checker.
Then some error logs will be shown like below.
WARN: KM4 logbuf full, dropped log!
WARN: KM4 logbuf full, dropped log!

So we set reboot reason temporaily while checking mem leaks to avoid km4 log print.
@@ -377,6 +380,11 @@ int run_mem_leak_checker(int checker_pid, char *bin_name)
int broken_cnt = 0;
struct mm_heap_s *heap = NULL;

#if defined(CONFIG_ARCH_BOARD_RTL8730E)
/* Set reboot reason temporaily to avoid km4 log print */
WRITE_REBOOT_REASON(REBOOT_TEMP_BLOCK_KM4_LOG);
Copy link
Contributor

Choose a reason for hiding this comment

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

How about make up_pause_subcore_logging()?

The KM4 is related to only rtl8730e chip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants