Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
baa99c92
Commit
baa99c92
authored
Aug 30, 2021
by
Petr Mladek
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-5.15-verbose-console' into for-linus
parents
71af75b6
10102a89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
10 deletions
+22
-10
Documentation/admin-guide/kernel-parameters.txt
Documentation/admin-guide/kernel-parameters.txt
+9
-0
include/linux/printk.h
include/linux/printk.h
+1
-10
kernel/printk/printk.c
kernel/printk/printk.c
+12
-0
No files found.
Documentation/admin-guide/kernel-parameters.txt
View file @
baa99c92
...
@@ -4167,6 +4167,15 @@
...
@@ -4167,6 +4167,15 @@
Format: <bool> (1/Y/y=enable, 0/N/n=disable)
Format: <bool> (1/Y/y=enable, 0/N/n=disable)
default: disabled
default: disabled
printk.console_no_auto_verbose=
Disable console loglevel raise on oops, panic
or lockdep-detected issues (only if lock debug is on).
With an exception to setups with low baudrate on
serial console, keeping this 0 is a good choice
in order to provide more debug information.
Format: <bool>
default: 0 (auto_verbose is enabled)
printk.devkmsg={on,off,ratelimit}
printk.devkmsg={on,off,ratelimit}
Control writing to /dev/kmsg.
Control writing to /dev/kmsg.
on - unlimited logging to /dev/kmsg from userspace
on - unlimited logging to /dev/kmsg from userspace
...
...
include/linux/printk.h
View file @
baa99c92
...
@@ -70,16 +70,7 @@ extern int console_printk[];
...
@@ -70,16 +70,7 @@ extern int console_printk[];
#define minimum_console_loglevel (console_printk[2])
#define minimum_console_loglevel (console_printk[2])
#define default_console_loglevel (console_printk[3])
#define default_console_loglevel (console_printk[3])
static
inline
void
console_silent
(
void
)
extern
void
console_verbose
(
void
);
{
console_loglevel
=
CONSOLE_LOGLEVEL_SILENT
;
}
static
inline
void
console_verbose
(
void
)
{
if
(
console_loglevel
)
console_loglevel
=
CONSOLE_LOGLEVEL_MOTORMOUTH
;
}
/* strlen("ratelimit") + 1 */
/* strlen("ratelimit") + 1 */
#define DEVKMSG_STR_MAX_SIZE 10
#define DEVKMSG_STR_MAX_SIZE 10
...
...
kernel/printk/printk.c
View file @
baa99c92
...
@@ -2380,6 +2380,18 @@ module_param_named(console_suspend, console_suspend_enabled,
...
@@ -2380,6 +2380,18 @@ module_param_named(console_suspend, console_suspend_enabled,
MODULE_PARM_DESC
(
console_suspend
,
"suspend console during suspend"
MODULE_PARM_DESC
(
console_suspend
,
"suspend console during suspend"
" and hibernate operations"
);
" and hibernate operations"
);
static
bool
printk_console_no_auto_verbose
;
void
console_verbose
(
void
)
{
if
(
console_loglevel
&&
!
printk_console_no_auto_verbose
)
console_loglevel
=
CONSOLE_LOGLEVEL_MOTORMOUTH
;
}
EXPORT_SYMBOL_GPL
(
console_verbose
);
module_param_named
(
console_no_auto_verbose
,
printk_console_no_auto_verbose
,
bool
,
0644
);
MODULE_PARM_DESC
(
console_no_auto_verbose
,
"Disable console loglevel raise to highest on oops/panic/etc"
);
/**
/**
* suspend_console - suspend the console subsystem
* suspend_console - suspend the console subsystem
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment