From kaos@sgi.com Mon Aug 28 23:38:31 2006 Received: with ECARTIS (v1.0.0; list kdb); Mon, 28 Aug 2006 23:38:47 -0700 (PDT) Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with SMTP id k7T6cDDW013002 for ; Mon, 28 Aug 2006 23:38:29 -0700 Received: from kao2.melbourne.sgi.com (kao2.melbourne.sgi.com [134.14.55.180]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id PAA05869 for ; Tue, 29 Aug 2006 15:26:48 +1000 Received: by kao2.melbourne.sgi.com (Postfix, from userid 16331) id 3A8F8105E0E; Tue, 29 Aug 2006 15:26:48 +1000 (EST) Received: from kao2.melbourne.sgi.com (localhost [127.0.0.1]) by kao2.melbourne.sgi.com (Postfix) with ESMTP id 2DB281401A5 for ; Tue, 29 Aug 2006 15:26:48 +1000 (EST) X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.1 From: Keith Owens To: kdb@oss.sgi.com Subject: kdb updates for x86_64 Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Tue, 29 Aug 2006 15:26:48 +1000 Message-ID: <20708.1156829208@kao2.melbourne.sgi.com> Content-Transfer-Encoding: 8bit X-archive-position: 1185 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb ftp://oss.sgi.com/projects/kdb/download/v4.4/ ftp://ftp.ocs.com.au/pub/mirrors/oss.sgi.com/projects/kdb/download/v4.4/ I am still working on getting the kdb patch for x86_64 up to scratch, but the time has come to release the existing work in progress, incomplete though it is. The backtrace code for i386 and x86_64 had bit rotted beyond repair. It did not handle mutiple kernel stacks correctly. It either did not get arguments or it printed misleading values for arguments. It did not handle the special case assembler routines very well. The kdb infrastructure for doing backtraces has been completely rewritten. This has affected the common code plus all the architecture patches, make sure you update the common patch to the same level as the architecture patches. ia64 is basically unaffected, the code changes have not changed the backtrace output. For i386 and x86_64, kdb now works its way through the multiple kernel stacks, even including the "interesting" nested debug stacks on x86_64. At the moment (patches kdb-v4.4-2.6.18-rc5-*-2), the i386 and x86_64 backtrace output is only an approximation. Like the built in kernel oops output, kdb for i386 and x86_64 prints anything that looks like a kernel or module address. IOW it is an imprecise backtrace which may have false positives, so be aware that any address listed in the kdb backtrace for i386 and x86_64 may not be real. Also there are no arguments listed in the backtrace for these architectures. I am working on getting arguments for i386 and x86_64 which will get a precise backtrace as a side effect. For the moment, an approximate output is better than nothing at all, which is what the previous kdb for x86_64 patches generated. KDB_ENTER() does not work on x86_64 at the moment. Also under development. My tree contained x86_64 patches against 2.6.17 onwards, they were not released because I did not consider them to be usable. They have been released now for historical purposes, but you should not use any patch before kdb-v4.4-2.6.18-rc5-x86_64-2. x86_64 changelog summary since kdb-v4.4-2.6.17-x86_64-1. 2006-08-29 Keith Owens * Rewrite all backtrace code. * Add pt_regs and cpu_pda commands. * Include patch to define orig_ist, to be removed once that patch is in the community tree. * kdb v4.4-2.6.18-rc5-x86_64-2. 2006-08-28 Keith Owens * kdb v4.4-2.6.18-rc5-x86_64-1. 2006-08-08 Keith Owens * kdb v4.4-2.6.18-rc4-x86_64-1. 2006-08-04 Keith Owens * kdb v4.4-2.6.18-rc3-x86_64-1. 2006-07-18 Keith Owens * kdb v4.4-2.6.18-rc2-x86_64-1. 2006-07-12 Keith Owens * sparse cleanups * kdb v4.4-2.6.18-rc1-x86_64-2. 2006-07-07 Keith Owens * kdb v4.4-2.6.18-rc1-x86_64-1. 2006-07-04 Keith Owens * Make KDB rendezvous on x86_64 a two stage approach. * Move smp_kdb_stop() and smp_kdb_interrupt() to kdbasupport.c. * Move setting of interrupt traps to kdbasupport.c. * Add KDB_REASON_CPU_UP support. * Move per cpu setup to kdba_cpu_up(). * Delete kdba_enable_mce, architectures now do their own setup. * Delete kdba_enable_lbr, kdba_disable_lbr, kdba_print_lbr, page_fault_mca. Only ever implemented on x86, difficult to maintain and rarely used in the field. * Replace #ifdef KDB_HAVE_LONGJMP with #ifdef kdba_setjmp. * kdb v4.4-2.6.17-x86_64-2. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@sgi.com Wed Aug 30 00:09:53 2006 Received: with ECARTIS (v1.0.0; list kdb); Wed, 30 Aug 2006 00:10:04 -0700 (PDT) Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with SMTP id k7U79eDW012000 for ; Wed, 30 Aug 2006 00:09:51 -0700 Received: from kao2.melbourne.sgi.com (kao2.melbourne.sgi.com [134.14.55.180]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id RAA10415 for ; Wed, 30 Aug 2006 17:08:57 +1000 Received: by kao2.melbourne.sgi.com (Postfix, from userid 16331) id 3E570108920; Wed, 30 Aug 2006 17:08:57 +1000 (EST) Received: from kao2.melbourne.sgi.com (localhost [127.0.0.1]) by kao2.melbourne.sgi.com (Postfix) with ESMTP id 2ECA91401B6 for ; Wed, 30 Aug 2006 17:08:57 +1000 (EST) X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.1 From: Keith Owens To: kdb@oss.sgi.com Subject: Re: kdb updates for x86_64 In-reply-to: Your message of "Tue, 29 Aug 2006 15:26:48 +1000." <20708.1156829208@kao2.melbourne.sgi.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Wed, 30 Aug 2006 17:08:57 +1000 Message-ID: <20198.1156921737@kao2.melbourne.sgi.com> Content-Transfer-Encoding: 8bit X-archive-position: 1186 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb Keith Owens (on Tue, 29 Aug 2006 15:26:48 +1000) wrote: >ftp://oss.sgi.com/projects/kdb/download/v4.4/ >ftp://ftp.ocs.com.au/pub/mirrors/oss.sgi.com/projects/kdb/download/v4.4/ > >KDB_ENTER() does not work on x86_64 at the moment. Also under >development. kdb-v4.4-2.6.18-rc5-x86_64-3.bz2 is up there, it now has KDB_ENTER() for x86_64. Use with kdb-v4.4-2.6.18-rc5-common-2 or later. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.