From owner-freebsd-alpha Tue Apr 10 18:59:27 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 452DD37B422; Tue, 10 Apr 2001 18:59:25 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f3B1xEG78707; Tue, 10 Apr 2001 18:59:15 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 10 Apr 2001 18:58:47 -0700 (PDT) From: John Baldwin To: John Baldwin Subject: Re: Trap spiffiness Cc: alpha@FreeBSD.org, Andrew Gallatin Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 11-Apr-01 John Baldwin wrote: > > On 11-Apr-01 Andrew Gallatin wrote: >> >> John Baldwin writes: >> > I finally got tired of needing to pull out the brown book to decode trap >> > messsages on the alpha, so I've coded up a patch that enhances the >> printtrap() >> > function to parse the a[012] registers for a given trap and print out the >> data >> > in a more meaningful fashion. For example: >> > >> >> Gee.. Just when I'd finally gotten them memorized ;) >> >> I like the patch, I'm all in favor of you comitting it. >> I think it might be interesting to see the user stack pointer (for >> emulator debugging) and to have an #ifdef SMP that printed out the >> cpu number too. > > Ok, will do. Just updated trap.patch. It prints out the cpuid, the kernel stack pointer, and for non-kthreads the user stack pointer now. On a somewhat related note, 64-bit kernel addresses really screw up the output of things like 'ps'. Would there be any large objection to dropping the first 5 'f's, the first three '0's from kernel pointers in ps output? Thus, instead of: fffffe000915e9c0 fffffc0000790000 you would get: e915e9c0 c0790000 etc. Granted, this is somewhat cryptic, but it would make ps work halfway decent. :-P >> Drew -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message