From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24862 invoked from network); 5 Aug 1998 15:41:10 -0000 Received: from mail11.digital.com (192.208.46.10) by mail2.redhat.com with SMTP; 5 Aug 1998 15:41:10 -0000 Received: from us1rmc.bb.dec.com (us1rmc.bb.dec.com [16.57.16.6]) by mail11.digital.com (8.8.8/8.8.8/WV1.0g) with SMTP id LAA28711 for ; Wed, 5 Aug 1998 11:40:59 -0400 (EDT) Received: from linux01.hlo.dec.com by us1rmc.bb.dec.com (5.65/rmc-17Jan97) id AA17247; Wed, 5 Aug 98 11:35:09 -0400 Received: (from paradis@localhost) by linux01.hlo.dec.com (8.8.7/8.8.7) id LAA14214 for axp-list@redhat.com; Wed, 5 Aug 1998 11:32:44 -0400 From: Jim Paradis Message-Id: <199808051532.LAA14214@linux01.hlo.dec.com> Subject: Re: Tracking *kernel* unaligned access To: axp-list@redhat.com Date: Wed, 5 Aug 1998 11:32:44 -0400 (EDT) In-Reply-To: from "B. James Phillippe" at Aug 5, 98 00:06:45 am X-Mailer: ELM [version 2.4 PL25] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > Needless to say, the kernel is a bit different. Can anyone point > out a safe way to track these in a running kernel? The old-fashioned way 8-) Start by building a kernel. Generate a symbol listing for the kernel by issuing the command: % nm --numeric-sort vmlinux > vmlinux.map in your top-level build tree. Now boot your kernel. When you get unaligned accesses, you will get an "unaligned-access" message containing the PC of the offending instruction. The "vmlinux.map" file contains, among other things, the starting addresses of every routine in the kernel. It's thus a simple matter to establish the routine where the offending instruction resides, and the offset into that routine. You can then go and disassemble the ".o" file containing that routine to figure out exactly what in the routine is causing the problem. Working back from that to source code is an exercise left to the reader 8-) -- Jim Paradis (paradis@linux01.hlo.dec.com) "The early bird gets the worm. Compaq Computer Corporation If you want something else for (508)841-3243 breakfast, get up later." http://www.tiac.net/users/jrp/index.html