kgdb patches for 6.7
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. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELzVBU1D3lWq6cKzwfOMlXTn3iKEFAmVJIdkACgkQfOMlXTn3 iKEetQ//Xy1LKXtxJOCY+uPEvFOr5NRSjGez41ImknbnR+njNh5/eb6g9rX9gNXf DpVHc0Yac61qP687kNCJw56rbizb9ETasJ/skdcEcGewvPL3ebvC64JjBAwDJOp/ V+jJljW6ccJnoxMUl/WdjCeK7hZo2+X6lzMmAjctj+NkTyVks3C/uqczuYKhsAhc z4WwQ8fSCjopuau8aDyn9fc9zsem+rMV9RWlMuqvl66URtnbFQhA3FjO/W8H8oPA SP7WX0HfKrtwctu0GQqbvKyba5eH1g69bndo0LxGVBDhFvK90sI3QPKID3UifPDq lpTCnOAjkDZuzjI6vLh8u+px1Z8mmXC4zi7mKy0ceTZeX5+DOJRuKi5XsnoBM7R1 24TPUY1kv1hVFyxBDHQ+IV493fjOLNY/qljhYNn635QaLhe/kdKOb7nC2IXCl2sR zhGmAzmEteQ2keuNuRMsKncnow3qLxxLmCfZgSZ9XS/8rM4H8YZ6LnQeIQ7VHeKi gKqV3qc5eD//hkJ8LtL4BCdTUuctMslltvCfhh9GvEpSMBsDxk8BszDMyDX5SOtM xzhBdI4K6iTdZhHfPD8BMx4iIC9HdS3v6Qx8f6b1ZC3gEUTWGikXkLlr9k3Ae1Qe YPcwnWfg4jImS2f4w/AQ+ajIU3i3ob0F/VRTC0r1oY4cM1z8RGs= =HBws -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
c1ef4df14e
@ -1006,6 +1006,9 @@ void kgdb_panic(const char *msg)
|
||||
if (panic_timeout)
|
||||
return;
|
||||
|
||||
debug_locks_off();
|
||||
console_flush_on_panic(CONSOLE_FLUSH_PENDING);
|
||||
|
||||
if (dbg_kdb_mode)
|
||||
kdb_printf("PANIC: %s\n", msg);
|
||||
|
||||
|
@ -272,11 +272,10 @@ char *kdbgetenv(const char *match)
|
||||
* kdballocenv - This function is used to allocate bytes for
|
||||
* environment entries.
|
||||
* Parameters:
|
||||
* match A character string representing a numeric value
|
||||
* Outputs:
|
||||
* *value the unsigned long representation of the env variable 'match'
|
||||
* bytes The number of bytes to allocate in the static buffer.
|
||||
* Returns:
|
||||
* Zero on success, a kdb diagnostic on failure.
|
||||
* A pointer to the allocated space in the buffer on success.
|
||||
* NULL if bytes > size available in the envbuffer.
|
||||
* Remarks:
|
||||
* We use a static environment buffer (envbuffer) to hold the values
|
||||
* of dynamically generated environment variables (see kdb_set). Buffer
|
||||
|
Loading…
x
Reference in New Issue
Block a user