Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Conversation

@Kunkka1988
Copy link

[DO NOT MERGE]: Add debug patches from Bo

bhe4 added 6 commits May 13, 2024 11:48
Pstore console follows global loglevel kernel parameter which is most
of time set to a reasonable value, 5 as example, in order to keep real
HW consoles with a low activity. This is an issue on production
systems where the pstore console (console-ramoops file) is used in
post-mortem debug as it misses all lower level messages and makes
analysis harder.

Kernel does not support the ability to ignore log level for a set of
consoles. It supports only overall setting named ignore_level that
affects all the consoles.

This patch provides a fine tuning of the log level management per
consoles by introducing CON_IGNORELEVEL flag.

Apply this flag to pstore console allows to have full kernel messages on
pstore console while still having a lower level on others. It ease
debugging to always have full log level on pstore console, even on
production devices where minimum debugging features are available.

Signed-off-by: Bo He <[email protected]>
1. Add a new console flag CON_FAST in order to be able
to disable slow consoles in cases where a considerable
amount of data should be logged in a limited amount of
time (eg. show_state in a WD warning interrupt)
2. Mark pstore console as CON_FAST

Signed-off-by: Bo He <[email protected]>
Add a new panic handler that will be able to dump a full tasks
state upon various panics. Because this dump could be time
sensitive, also temporary disable the slow consoles during this.
By default only soft/hard lockups and Kernel watchdog warning
interrupts are targeted, but the functionality can be extended
to all panics or forced disable by "force_en" and "force_dis"
module parameters.

Signed-off-by: Bo He <[email protected]>
@sysopenci
Copy link

Improper Commit Message
Tracked on not found in commit message,
make sure Tracked-On: Jira-ticket is present.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants