Re: [PATCH] sysrq: showBlockedTasks is sysrq-W

2007-01-06 Thread Randy Dunlap
On Sat, 6 Jan 2007 20:19:29 +0100 Torsten Kaiser wrote:

> On Saturday 06 January 2007 19:25, Randy Dunlap wrote:
> > On Fri, 5 Jan 2007 20:36:05 +0100 Olaf Hering wrote:
> > >
> > > Weird, who failed to run this command before adding new stuff?!
> > > find * -type f -print0 | xargs -0 env -i grep -nw register_sysrq_key
> > >
> > > sysrq x is for xmon, see arch/powerpc/xmon/xmon.c
> > > Better switch the new stuff to 'z' or 'w'
> 
> Also used: 
> * c for kexec/crashdump and emac (drivers/net/ibm_emac/ibm_emac_debug.c)

ibm_emac is ppc 4xx only.  Does kexec/crashdump work on that
platform or are they mutually exclusive?

> * g for KGDB on ppc

Is that in mainline?


> > From: Randy Dunlap <[EMAIL PROTECTED]>
> >
> > SysRq showBlockedTasks is not done via B or T, it's done via W,
> > so put that in the Help message.
> >
> > It was previously done via X, but X is already used for Xmon
> > on powerpc platforms and this collision needs to be avoided.
> 
> > @@ -342,8 +342,8 @@ static struct sysrq_key_op *sysrq_key_ta
> > _mountro_op,  /* u */
> > /* May be assigned at init time by SMP VOYAGER */
> > NULL,   /* v */
> 
> Nice marker that v is in use.
> 
> > -   NULL,   /* w */
> > -   _showstate_blocked_op,/* x */
> > +   _showstate_blocked_op,/* w */
> > +   NULL,   /* x */
> 
> Wouldn't it be better to also put an marker for xmon here?
> And marker for 'c' and 'g' (maybe even 'h')?

OK, I'll do that.

> > NULL,   /* y */
> > NULL/* z */
> >  };
> 
> Also Documentation/sysrq.txt is not uptodate.
> 
> It is missing c (emac meaning), d (lockdep), n (un-RT), q (timer), w 
> (blocked) and x (xmon), but is documenting 'l' with no longer seems to be 
> implemented.

and I'll look into that.  Thanks.

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] sysrq: showBlockedTasks is sysrq-W

2007-01-06 Thread Torsten Kaiser
On Saturday 06 January 2007 19:25, Randy Dunlap wrote:
> On Fri, 5 Jan 2007 20:36:05 +0100 Olaf Hering wrote:
> >
> > Weird, who failed to run this command before adding new stuff?!
> > find * -type f -print0 | xargs -0 env -i grep -nw register_sysrq_key
> >
> > sysrq x is for xmon, see arch/powerpc/xmon/xmon.c
> > Better switch the new stuff to 'z' or 'w'

Also used: 
* c for kexec/crashdump and emac (drivers/net/ibm_emac/ibm_emac_debug.c)
* g for KGDB on ppc

> From: Randy Dunlap <[EMAIL PROTECTED]>
>
> SysRq showBlockedTasks is not done via B or T, it's done via W,
> so put that in the Help message.
>
> It was previously done via X, but X is already used for Xmon
> on powerpc platforms and this collision needs to be avoided.

> @@ -342,8 +342,8 @@ static struct sysrq_key_op *sysrq_key_ta
>   _mountro_op,  /* u */
>   /* May be assigned at init time by SMP VOYAGER */
>   NULL,   /* v */

Nice marker that v is in use.

> - NULL,   /* w */
> - _showstate_blocked_op,/* x */
> + _showstate_blocked_op,/* w */
> + NULL,   /* x */

Wouldn't it be better to also put an marker for xmon here?
And marker for 'c' and 'g' (maybe even 'h')?

>   NULL,   /* y */
>   NULL/* z */
>  };

Also Documentation/sysrq.txt is not uptodate.

It is missing c (emac meaning), d (lockdep), n (un-RT), q (timer), w 
(blocked) and x (xmon), but is documenting 'l' with no longer seems to be 
implemented.

Torsten
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] sysrq: showBlockedTasks is sysrq-W

2007-01-06 Thread Randy Dunlap
On Fri, 5 Jan 2007 20:36:05 +0100 Olaf Hering wrote:

> On Fri, Jan 05, Randy Dunlap wrote:
> 
> > From: Randy Dunlap <[EMAIL PROTECTED]>
> > 
> > SysRq showBlockedTasks is not done via B or T, it's done via X,
> > so put that in the Help message.
> 
> Weird, who failed to run this command before adding new stuff?!
> find * -type f -print0 | xargs -0 env -i grep -nw register_sysrq_key
> 
> sysrq x is for xmon, see arch/powerpc/xmon/xmon.c
> Better switch the new stuff to 'z' or 'w'
---

From: Randy Dunlap <[EMAIL PROTECTED]>

SysRq showBlockedTasks is not done via B or T, it's done via W,
so put that in the Help message.

It was previously done via X, but X is already used for Xmon
on powerpc platforms and this collision needs to be avoided.

Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]>
---
 drivers/char/sysrq.c |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-2620-rc3g4.orig/drivers/char/sysrq.c
+++ linux-2620-rc3g4/drivers/char/sysrq.c
@@ -215,7 +215,7 @@ static void sysrq_handle_showstate_block
 }
 static struct sysrq_key_op sysrq_showstate_blocked_op = {
.handler= sysrq_handle_showstate_blocked,
-   .help_msg   = "showBlockedTasks",
+   .help_msg   = "showBlockedTasks(W)",
.action_msg = "Show Blocked State",
.enable_mask= SYSRQ_ENABLE_DUMP,
 };
@@ -342,8 +342,8 @@ static struct sysrq_key_op *sysrq_key_ta
_mountro_op,  /* u */
/* May be assigned at init time by SMP VOYAGER */
NULL,   /* v */
-   NULL,   /* w */
-   _showstate_blocked_op,/* x */
+   _showstate_blocked_op,/* w */
+   NULL,   /* x */
NULL,   /* y */
NULL/* z */
 };
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] sysrq: showBlockedTasks is sysrq-W

2007-01-06 Thread Randy Dunlap
On Fri, 5 Jan 2007 20:36:05 +0100 Olaf Hering wrote:

 On Fri, Jan 05, Randy Dunlap wrote:
 
  From: Randy Dunlap [EMAIL PROTECTED]
  
  SysRq showBlockedTasks is not done via B or T, it's done via X,
  so put that in the Help message.
 
 Weird, who failed to run this command before adding new stuff?!
 find * -type f -print0 | xargs -0 env -i grep -nw register_sysrq_key
 
 sysrq x is for xmon, see arch/powerpc/xmon/xmon.c
 Better switch the new stuff to 'z' or 'w'
---

From: Randy Dunlap [EMAIL PROTECTED]

SysRq showBlockedTasks is not done via B or T, it's done via W,
so put that in the Help message.

It was previously done via X, but X is already used for Xmon
on powerpc platforms and this collision needs to be avoided.

Signed-off-by: Randy Dunlap [EMAIL PROTECTED]
---
 drivers/char/sysrq.c |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-2620-rc3g4.orig/drivers/char/sysrq.c
+++ linux-2620-rc3g4/drivers/char/sysrq.c
@@ -215,7 +215,7 @@ static void sysrq_handle_showstate_block
 }
 static struct sysrq_key_op sysrq_showstate_blocked_op = {
.handler= sysrq_handle_showstate_blocked,
-   .help_msg   = showBlockedTasks,
+   .help_msg   = showBlockedTasks(W),
.action_msg = Show Blocked State,
.enable_mask= SYSRQ_ENABLE_DUMP,
 };
@@ -342,8 +342,8 @@ static struct sysrq_key_op *sysrq_key_ta
sysrq_mountro_op,  /* u */
/* May be assigned at init time by SMP VOYAGER */
NULL,   /* v */
-   NULL,   /* w */
-   sysrq_showstate_blocked_op,/* x */
+   sysrq_showstate_blocked_op,/* w */
+   NULL,   /* x */
NULL,   /* y */
NULL/* z */
 };
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] sysrq: showBlockedTasks is sysrq-W

2007-01-06 Thread Torsten Kaiser
On Saturday 06 January 2007 19:25, Randy Dunlap wrote:
 On Fri, 5 Jan 2007 20:36:05 +0100 Olaf Hering wrote:
 
  Weird, who failed to run this command before adding new stuff?!
  find * -type f -print0 | xargs -0 env -i grep -nw register_sysrq_key
 
  sysrq x is for xmon, see arch/powerpc/xmon/xmon.c
  Better switch the new stuff to 'z' or 'w'

Also used: 
* c for kexec/crashdump and emac (drivers/net/ibm_emac/ibm_emac_debug.c)
* g for KGDB on ppc

 From: Randy Dunlap [EMAIL PROTECTED]

 SysRq showBlockedTasks is not done via B or T, it's done via W,
 so put that in the Help message.

 It was previously done via X, but X is already used for Xmon
 on powerpc platforms and this collision needs to be avoided.

 @@ -342,8 +342,8 @@ static struct sysrq_key_op *sysrq_key_ta
   sysrq_mountro_op,  /* u */
   /* May be assigned at init time by SMP VOYAGER */
   NULL,   /* v */

Nice marker that v is in use.

 - NULL,   /* w */
 - sysrq_showstate_blocked_op,/* x */
 + sysrq_showstate_blocked_op,/* w */
 + NULL,   /* x */

Wouldn't it be better to also put an marker for xmon here?
And marker for 'c' and 'g' (maybe even 'h')?

   NULL,   /* y */
   NULL/* z */
  };

Also Documentation/sysrq.txt is not uptodate.

It is missing c (emac meaning), d (lockdep), n (un-RT), q (timer), w 
(blocked) and x (xmon), but is documenting 'l' with no longer seems to be 
implemented.

Torsten
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] sysrq: showBlockedTasks is sysrq-W

2007-01-06 Thread Randy Dunlap
On Sat, 6 Jan 2007 20:19:29 +0100 Torsten Kaiser wrote:

 On Saturday 06 January 2007 19:25, Randy Dunlap wrote:
  On Fri, 5 Jan 2007 20:36:05 +0100 Olaf Hering wrote:
  
   Weird, who failed to run this command before adding new stuff?!
   find * -type f -print0 | xargs -0 env -i grep -nw register_sysrq_key
  
   sysrq x is for xmon, see arch/powerpc/xmon/xmon.c
   Better switch the new stuff to 'z' or 'w'
 
 Also used: 
 * c for kexec/crashdump and emac (drivers/net/ibm_emac/ibm_emac_debug.c)

ibm_emac is ppc 4xx only.  Does kexec/crashdump work on that
platform or are they mutually exclusive?

 * g for KGDB on ppc

Is that in mainline?


  From: Randy Dunlap [EMAIL PROTECTED]
 
  SysRq showBlockedTasks is not done via B or T, it's done via W,
  so put that in the Help message.
 
  It was previously done via X, but X is already used for Xmon
  on powerpc platforms and this collision needs to be avoided.
 
  @@ -342,8 +342,8 @@ static struct sysrq_key_op *sysrq_key_ta
  sysrq_mountro_op,  /* u */
  /* May be assigned at init time by SMP VOYAGER */
  NULL,   /* v */
 
 Nice marker that v is in use.
 
  -   NULL,   /* w */
  -   sysrq_showstate_blocked_op,/* x */
  +   sysrq_showstate_blocked_op,/* w */
  +   NULL,   /* x */
 
 Wouldn't it be better to also put an marker for xmon here?
 And marker for 'c' and 'g' (maybe even 'h')?

OK, I'll do that.

  NULL,   /* y */
  NULL/* z */
   };
 
 Also Documentation/sysrq.txt is not uptodate.
 
 It is missing c (emac meaning), d (lockdep), n (un-RT), q (timer), w 
 (blocked) and x (xmon), but is documenting 'l' with no longer seems to be 
 implemented.

and I'll look into that.  Thanks.

---
~Randy
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/