lkml.org 
[lkml]   [2008]   [Aug]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 16 Aug 2008 00:33:18 -0600 (MDT)
SubjectRe: [PATCH 2.6.27-rc3 19/28] mdb: adding notify_die handler for keyboard debugger entry
From jmerkey@wolfmoun ...
> jmerkey@wolfmountaingroup.com writes:
>
>> +#if defined(CONFIG_MDB) || defined(CONFIG_MDB_MODULE)
>> +	if (down && !rep && keycode == KEY_PAUSE)
>> +        {
>> +	   if (notify_die(DIE_KERNELDEBUG, NULL, get_irq_regs(),
>> +                          0, -1, SIGINT) == NOTIFY_STOP)
>> +	      return;
>> +	}
>> +#endif
>> +
>>  #ifdef CONFIG_MAGIC_SYSRQ	       /* Handle the SysRq Hack */
>>  	if (keycode == KEY_SYSRQ && (sysrq_down || (down == 1 && sysrq_alt)))
>> {
>>  		if (!sysrq_down) {
>
> A nicer alternative to adding an hook here would be to use
> register_sysrq_key() to register a sysrq key that triggers
> the debugger.  That function is also already exported.
>
> -Andi
>

Got it.  Added to the list.  I will Instrument it.

Jeff



\
 
 \ /
  Last update: 2008-08-16 08:59    [from the cache]
©2003-2008