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
f0f69239
Commit
f0f69239
authored
Sep 04, 2023
by
Petr Mladek
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rework/misc-cleanups' into for-linus
parents
b3553628
132a90d1
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
156 additions
and
73 deletions
+156
-73
include/linux/console.h
include/linux/console.h
+3
-0
kernel/debug/kdb/kdb_io.c
kernel/debug/kdb/kdb_io.c
+2
-0
kernel/printk/internal.h
kernel/printk/internal.h
+2
-0
kernel/printk/printk.c
kernel/printk/printk.c
+147
-66
kernel/printk/printk_safe.c
kernel/printk/printk_safe.c
+2
-7
No files found.
include/linux/console.h
View file @
f0f69239
...
...
@@ -154,6 +154,8 @@ static inline int con_debug_leave(void)
* receiving the printk spam for obvious reasons.
* @CON_EXTENDED: The console supports the extended output format of
* /dev/kmesg which requires a larger output buffer.
* @CON_SUSPENDED: Indicates if a console is suspended. If true, the
* printing callbacks must not be called.
*/
enum
cons_flags
{
CON_PRINTBUFFER
=
BIT
(
0
),
...
...
@@ -163,6 +165,7 @@ enum cons_flags {
CON_ANYTIME
=
BIT
(
4
),
CON_BRL
=
BIT
(
5
),
CON_EXTENDED
=
BIT
(
6
),
CON_SUSPENDED
=
BIT
(
7
),
};
/**
...
...
kernel/debug/kdb/kdb_io.c
View file @
f0f69239
...
...
@@ -576,6 +576,8 @@ static void kdb_msg_write(const char *msg, int msg_len)
continue
;
if
(
c
==
dbg_io_ops
->
cons
)
continue
;
if
(
!
c
->
write
)
continue
;
/*
* Set oops_in_progress to encourage the console drivers to
* disregard their internal spin locks: in the current calling
...
...
kernel/printk/internal.h
View file @
f0f69239
...
...
@@ -103,3 +103,5 @@ struct printk_message {
u64
seq
;
unsigned
long
dropped
;
};
bool
other_cpu_in_panic
(
void
);
kernel/printk/printk.c
View file @
f0f69239
This diff is collapsed.
Click to expand it.
kernel/printk/printk_safe.c
View file @
f0f69239
...
...
@@ -38,13 +38,8 @@ asmlinkage int vprintk(const char *fmt, va_list args)
* Use the main logbuf even in NMI. But avoid calling console
* drivers that might have their own locks.
*/
if
(
this_cpu_read
(
printk_context
)
||
in_nmi
())
{
int
len
;
len
=
vprintk_store
(
0
,
LOGLEVEL_DEFAULT
,
NULL
,
fmt
,
args
);
defer_console_output
();
return
len
;
}
if
(
this_cpu_read
(
printk_context
)
||
in_nmi
())
return
vprintk_deferred
(
fmt
,
args
);
/* No obstacles. */
return
vprintk_default
(
fmt
,
args
);
...
...
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