[PATCH] Add KDB Modules support

linas at austin.ibm.com linas at austin.ibm.com
Fri Sep 26 06:20:19 EST 2003


On Thu, Sep 25, 2003 at 10:06:08PM +0200, Olaf Hering wrote:
>  On Thu, Sep 25, linas at austin.ibm.com wrote:
>
> >
> > Warning: On my machine asking for req and rqueue hung the machine hard.
> > req             <vaddr>              dump request struct
> > rqueue          <vaddr>              dump request queue
> >
> > I suspect that this may be due to the fact that the ppc64 KDB is downlevel,
> > and that this problem is fixed in newer KDB's.
>
> Is that fixable for the currently used KDB?
> A simple #if 0 might count as a fix.


I'll investigate.  If you don't hear from me in 48 hours, use the #if 0 below

--linas

--- kdb/modules/kdbm_pg.c.orig  2003-09-25 15:09:53.000000000 -0500
+++ kdb/modules/kdbm_pg.c       2003-09-25 15:13:28.000000000 -0500
@@ -197,6 +197,8 @@ static int
 kdbm_request(int argc, const char **argv, const char **envp,
        struct pt_regs *regs)
 {
+#if 0   /* currently this locks up KDB hard don't know why */
+
        long    offset=0;
        unsigned long addr;
        int nextarg;
@@ -211,6 +213,7 @@ kdbm_request(int argc, const char **argv
                return diag;

        print_request(addr);
+#endif
        return 0;
 }

@@ -219,6 +222,8 @@ static int
 kdbm_rqueue(int argc, const char **argv, const char **envp,
        struct pt_regs *regs)
 {
+
+#if 0   /* currently this locks up KDB hard don't know why */
        struct request_queue    rq;
        unsigned long addr, head_addr, next;
        long    offset=0;
@@ -252,6 +257,7 @@ kdbm_rqueue(int argc, const char **argv,
        if (i)
                kdb_printf("%d requests found\n", i);

+#endif
        return 0;
 }


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list