History

Merge tag 'kgdb-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux

Pull kgdb updates from Daniel Thompson: "Just two patches for you this time! - During a panic, flush the console before entering kgdb. This makes things a little easier to comprehend, especially if an NMI backtrace was triggered on all CPUs just before we enter the panic routines - Correcting a couple of misleading (a.k.a. plain wrong) comments" * tag 'kgdb-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux: kdb: Corrects comment for kdballocenv kgdb: Flush console before entering kgdb on panic

Linus Torvalds committed 3 years ago

Commit c1ef4df2 parents d46392b 23816722 files · +6 −4Browse files

Showing the changes to kernel (2 of 2 files). Show all

Unified · Split

2 files
  1. kernel/debug/debug_core.c +3 −0
  2. kernel/debug/kdb/kdb_main.c +3 −4
kernel/debug/debug_core.c+3−0
@@ -1006,6 +1006,9 @@ void kgdb_panic(const char *msg) · 1005 unmodified lines
1006 if (panic_timeout)1006 if (panic_timeout)
1007 return;1007 return;
1008 1008
1009 debug_locks_off();
1010 console_flush_on_panic(CONSOLE_FLUSH_PENDING);
1011
1009 if (dbg_kdb_mode)1012 if (dbg_kdb_mode)
1010 kdb_printf("PANIC: %s\n", msg);1013 kdb_printf("PANIC: %s\n", msg);
1011 1014
kernel/debug/kdb/kdb_main.c+3−4
@@ -272,11 +272,10 @@ char *kdbgetenv(const char *match) · 271 unmodified lines
272 * kdballocenv - This function is used to allocate bytes for272 * kdballocenv - This function is used to allocate bytes for
273 * environment entries.273 * environment entries.
274 * Parameters:274 * Parameters:
275 * match A character string representing a numeric value275 * bytes The number of bytes to allocate in the static buffer.
276 * Outputs:
277 * *value the unsigned long representation of the env variable 'match'
278 * Returns:276 * Returns:
279 * Zero on success, a kdb diagnostic on failure.277 * A pointer to the allocated space in the buffer on success.
278 * NULL if bytes > size available in the envbuffer.
280 * Remarks:279 * Remarks:
281 * We use a static environment buffer (envbuffer) to hold the values280 * We use a static environment buffer (envbuffer) to hold the values
282 * of dynamically generated environment variables (see kdb_set). Buffer281 * of dynamically generated environment variables (see kdb_set). Buffer

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t