kgdb patches for 7.1
Only a very small update for kgdb this cycle: a single patch from Kexin Sun that fixes some outdated comments. Signed-off-by: Daniel Thompson (RISCstar) <danielt@kernel.org> -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELzVBU1D3lWq6cKzwfOMlXTn3iKEFAmno2OcACgkQfOMlXTn3 iKHVNw/+IXsSmpUTllkwlzmib+D7zYVEoyLOdoBRQyJDjjT9Qe811budkIs02sIk NUgMBnffInU73lCw2TbRpKag9+dl8ZglKFvM3UpElFzY5ePnUc/fHeFtsXdzVjSK PVzL3fCtN66R1MuMeCdMNjhtSVHNJCrclj0We39JRgli7kWK1zH6kY8X/j/ExBTR 9S5e3/9Yn/V9Z2Z33lwBMCKLHyd/5r0ezKbvfVGmqT/sTE/IbTcTfVMipEHGtHfA JHs5PC+1obJ9jeq/1c1fV8tZ8kO+VjGI0yUibbWEBmPx0pVUW/FG1z+WwhlbcyOl cyhKQ7d4h4e718M+bWAXeoRGk9bXyAWHqWojM98Xh+TvR2H20qAzUC44qeT9tt7B SOfvZM4Xwsn+uYqmthtMqLMqe8VIX2WbUVjsntYZ46fRTq8RAUY3z7yLv6bm7N4l p4i7/cdCsbzi+tN6uaKANywvt9ygEAcPILGfMhfIS4Pa7aQ/JVjKgxKhP1bUuH9u ftqIcJwvX3d8MDQY4FsLpsRToj3rADfr35HnQCc7fmqRIFi7++fXzPerktdF/5Sd 6NMR0+mdFewdW9JfYKGZMTybf9XXyC+F6HlKgNOBddPje7qQlLUIQBajn71W753i TNKI5Go6idMgWEukNVXGD2XqObyKD2eBgCj/42Kc8bDfo7D66UA= =MegD -----END PGP SIGNATURE----- Merge tag 'kgdb-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux Pull kgdb update from Daniel Thompson: "Only a very small update for kgdb this cycle: a single patch from Kexin Sun that fixes some outdated comments" * tag 'kgdb-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux: kgdb: update outdated references to kgdb_wait()master
commit
38ee6e1fb6
|
|
@ -407,10 +407,11 @@ static void kgdb_disable_hw_debug(struct pt_regs *regs)
|
|||
* kgdb_roundup_cpus - Get other CPUs into a holding pattern
|
||||
*
|
||||
* On SMP systems, we need to get the attention of the other CPUs
|
||||
* and get them be in a known state. This should do what is needed
|
||||
* to get the other CPUs to call kgdb_wait(). Note that on some arches,
|
||||
* the NMI approach is not used for rounding up all the CPUs. For example,
|
||||
* in case of MIPS, smp_call_function() is used to roundup CPUs.
|
||||
* and get them into a known state. This should do what is needed
|
||||
* to get the other CPUs to call kgdb_handle_exception(). Note that
|
||||
* on some arches, the NMI approach is not used for rounding up all
|
||||
* the CPUs. For example, in case of MIPS, smp_call_function() is
|
||||
* used to roundup CPUs.
|
||||
*
|
||||
* On non-SMP systems, this is not called.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -202,9 +202,10 @@ extern void kgdb_call_nmi_hook(void *ignored);
|
|||
*
|
||||
* On SMP systems, we need to get the attention of the other CPUs
|
||||
* and get them into a known state. This should do what is needed
|
||||
* to get the other CPUs to call kgdb_wait(). Note that on some arches,
|
||||
* the NMI approach is not used for rounding up all the CPUs. Normally
|
||||
* those architectures can just not implement this and get the default.
|
||||
* to get the other CPUs to call kgdb_handle_exception(). Note that
|
||||
* on some arches, the NMI approach is not used for rounding up all
|
||||
* the CPUs. Normally those architectures can just not implement
|
||||
* this and get the default.
|
||||
*
|
||||
* On non-SMP systems, this is not called.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -704,7 +704,7 @@ return_normal:
|
|||
if (ks->send_ready)
|
||||
atomic_set(ks->send_ready, 1);
|
||||
|
||||
/* Signal the other CPUs to enter kgdb_wait() */
|
||||
/* Signal the other CPUs to enter the debug trap handler */
|
||||
else if ((!kgdb_single_step) && kgdb_do_roundup)
|
||||
kgdb_roundup_cpus();
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -517,7 +517,7 @@ static void gdb_get_regs_helper(struct kgdb_state *ks)
|
|||
/*
|
||||
* All threads that don't have debuggerinfo should be
|
||||
* in schedule() sleeping, since all other CPUs
|
||||
* are in kgdb_wait, and thus have debuggerinfo.
|
||||
* are in kgdb_cpu_enter(), and thus have debuggerinfo.
|
||||
*/
|
||||
if (local_debuggerinfo) {
|
||||
pt_regs_to_gdb_regs(gdb_regs, local_debuggerinfo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue