mdb: Merkey's Kernel Debugger
PATCH 1/25 mdb: Merkey's Kernel Debugger
Netware Style Debugger for Linux written by Jeffrey Vernon Merkey
--- linux-2.6.26/arch/x86/kernel/reboot.c 2008-07-13 15:51:29.000000000 -0600
+++ linux-2.6.26-mdb/arch/x86/kernel/reboot.c 2008-08-03
12:49:01.000000000 -0600
@@ -425,7 +425,16 @@
/* O.K Now that I'm on the appropriate processor,
* stop all of the others.
*/
+#ifdef CONFIG_MDB
+ // do not stop the other processors if the debugger is active +
{+ extern atomic_t inmdb;
+ if (!atomic_read(&inmdb))
+ smp_send_stop();
+ }
+#else
smp_send_stop();
+#endif // CONFIG_MDB
#endif
lapic_shutdown();
By making a contribution to this project, I certify that the contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file
Jeffrey Vernon Merkey
Quoted 1 line · On Sun, Aug 03, 2008 at 08:10:01PM -0600, [email protected] wrote:
Netware Style Debugger for Linux written by Jeffrey Vernon Merkey
I note that all of these 25 patches have the same title, either they are one change and would be in one patch, or more likely they are all changing different bits of the kernel and as such could do with meaningful titles. For a start without that they could not be tested in -mm as they will not load into Andrews patch tools. Second reviewers for the specific sub-systems or architectures touched may only look over the patches that are relevant to them. Without any clue in the title they probabally won't bother.
Quoted 4 lines
arch/x86/kernel/reboot.c +0
-012:49:01.000000000 -0600
arch/x86/kernel/reboot.c line 434
Quoted 10 lines
arch/x86/kernel/reboot.c +6
-0@@ -425,7 +425,16 @@/* O.K Now that I'm on the appropriate processor, * stop all of the others. */ +#ifdef CONFIG_MDB +// do not stop the other processors if the debugger is active + { +extern atomic_t inmdb; +if (!atomic_read (&inmdb)) +smp_send_stop (); + }
Now its hard to be 100% sure that this spacing is what you have in your copy as a lot of these patches appear at first viewing to be space munged and wrapped probabally by your mailer. BUT, this appears to be using non-standard indent levels. You will have much much much less resistance if you follow the recommendations in Documentation/CodingStyle. Also you may want to check the emails as they have arrived at the LKML and see if they are the same as your original, your mail reader may be dammaging them.
Quoted 7 lines
arch/x86/kernel/reboot.c +2
-0+#else smp_send_stop (); +#endif // CONFIG_MDB #endif lapic_shutdown ();
Quoted 5 lines
By making a contribution to this project, I certify that the contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file
Jeffrey Vernon Merkey
This sounds very much like you are signing off your patch as per the DCO. If so then normally that would be done via a Signed-off-by: header at the end of the leader, not down here.
-apw