| To: | kdb@xxxxxxxxxxx |
|---|---|
| Subject: | Re: kdb ps patch |
| From: | Will Schmidt <willschm@xxxxxxxxxx> |
| Date: | Fri, 18 Jul 2003 10:45:18 -0500 |
| Cc: | linas@xxxxxxxxxxxxxx |
| Sender: | kdb-bounce@xxxxxxxxxxx |
Yes, the ppc64 tree (that this problem came from) is backlevel; still
running with the kdb-common v2.1/v2.3 code.
-Will
willschm@xxxxxxxxxx
Linux on PowerPC-64 Development
IBM Rochester
Keith Owens
<kaos@xxxxxxx> To: kdb@xxxxxxxxxxx
Sent by: cc:
kdb-bounce@xxxxxx Subject: Re: kdb ps patch
i.com
07/18/2003 10:12
AM
On Thu, 17 Jul 2003 16:18:05 -0500,
linas@xxxxxxxxxxxxxx wrote:
>Anyway, here's a patch, it allows running tasks to be listed
>on 64-but machines.
>
>Index: kdbsupport.c
>===================================================================
>RCS file: /home/linas/cvsroot/linux24/kdb/Attic/kdbsupport.c,v
>retrieving revision 1.1.2.1
>diff -u -r1.1.2.1 kdbsupport.c
>--- kdbsupport.c 15 Jul 2003 18:43:51 -0000 1.1.2.1
>+++ kdbsupport.c 17 Jul 2003 19:03:30 -0000
>@@ -672,9 +672,9 @@
> * none.
> */
>
>-#define UNRUNNABLE (1 << (8*sizeof(unsigned long) - 1)) /*
unrunnable is < 0 */
>-#define RUNNING (1 << (8*sizeof(unsigned long) - 2))
>-#define TRACED (1 << (8*sizeof(unsigned long) - 3))
>+#define UNRUNNABLE (1UL << (8*sizeof(unsigned long) - 1)) /*
unrunnable is < 0 */
>+#define RUNNING (1UL << (8*sizeof(unsigned long) - 2))
>+#define TRACED (1UL << (8*sizeof(unsigned long) - 3))
>
> unsigned long
> kdb_task_state_string(int argc, const char **argv, const char **envp)
You must be running off an old version of kdb. That was fixed around
October 2002, in kdb v2.4.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: kdb ps patch, Keith Owens |
|---|---|
| Next by Date: | Re: kdb ps patch, Keith Owens |
| Previous by Thread: | Re: kdb ps patch, linas |
| Next by Thread: | Re: kdb ps patch, Keith Owens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |