From owner-lkcd@oss.sgi.com Mon Mar 13 10:06:18 2000 Received: by oss.sgi.com id ; Mon, 13 Mar 2000 10:05:57 -0800 Received: from mailext03.compaq.com ([207.18.199.41]:27583 "HELO mailext03.compaq.com") by oss.sgi.com with SMTP id ; Mon, 13 Mar 2000 10:05:48 -0800 Received: by mailext03.compaq.com (Postfix, from userid 12345) id D9A9115201E; Mon, 13 Mar 2000 12:05:46 -0600 (CST) Received: from mailint02.im.hou.compaq.com (mailint02.compaq.com [207.18.199.35]) by mailext03.compaq.com (Postfix) with ESMTP id D40A2148506; Mon, 13 Mar 2000 12:05:46 -0600 (CST) Received: by mailint02.im.hou.compaq.com (Postfix, from userid 12345) id 5A6BE4D40C; Mon, 13 Mar 2000 12:05:40 -0600 (CST) Received: from cxo3ns.cxo.dec.com (cxo3ns.cxo.dec.com [16.63.0.10]) by mailint02.im.hou.compaq.com (Postfix) with SMTP id F274C43982; Mon, 13 Mar 2000 12:05:39 -0600 (CST) Received: from brownfur.cxo.dec.com by cxo3ns.cxo.dec.com; (5.65v4.0/1.1.8.2/11Apr96-1001AM) id AA26262; Mon, 13 Mar 2000 11:05:45 -0700 Received: from dhcp32-218.cxo.dec.com by brownfur.cxo.dec.com (5.65v4.0/1.1.10.5/17Feb98-0753AM) id AA17922; Mon, 13 Mar 2000 11:05:44 -0700 Content-Length: 399 Message-Id: X-Mailer: XFMail 1.4.4 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Mime-Version: 1.0 In-Reply-To: Date: Mon, 13 Mar 2000 11:05:25 -0700 (MST) Reply-To: Brian Hall From: Brian Hall To: "Matt D. Robinson" , lkcd@oss.sgi.com Subject: Re: Kernel debugger, other debugging tools Sender: owner-lkcd@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;lkcd-outgoing Who else is working on the Alpha port? On 09-Mar-2000 Matt D. Robinson wrote: > Nothing regarding LKCD is being done on ARM at the moment; most of > the efforts are concentrated on the Alpha 2.2.X port, moving to a > 2.3.X base, and eventually a IA64 port. There are some individuals > looking at the analyzer portion for S/390 at the moment. -- http://www.bigfoot.com/~brihall Linux Consultant From owner-lkcd@oss.sgi.com Mon Mar 13 10:12:57 2000 Received: by oss.sgi.com id ; Mon, 13 Mar 2000 10:12:48 -0800 Received: from mail.turbolinux.com ([38.170.88.25]:55818 "EHLO mail.turbolinux.com") by oss.sgi.com with ESMTP id ; Mon, 13 Mar 2000 10:12:25 -0800 Received: from localhost (yakker@localhost) by mail.turbolinux.com (8.9.3/8.9.3) with ESMTP id KAA11441; Mon, 13 Mar 2000 10:11:46 -0800 Date: Mon, 13 Mar 2000 10:11:45 -0800 (PST) From: "Matt D. Robinson" To: Brian Hall cc: lkcd@oss.sgi.com, Matt Robinson Subject: Re: Kernel debugger, other debugging tools In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-lkcd@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;lkcd-outgoing I am now ... I just moved companies (not sure if you noticed via my E-mail address ... I'm at TurboLinux now, not SGI anymore). In any case, we have Alpha machines here, so I'm not limited to the type of hardware I get to work on. I have an Alpha machine allocated to me for doing LKCD work. In any case, just to let you know, these last two weeks have been filled with me getting into my new job, figuring out my role, etc. Either way, I'm starting my work on LKCD, and yes, Alpha is now on my list (with you, of course). :) I should have contacted you earlier, but as I said, it's been a busy move ... I apologize. In any case, the work continues. I'll let you know where I'm at as soon as I can. --Matt On Mon, 13 Mar 2000, Brian Hall wrote: |>Who else is working on the Alpha port? |> |>On 09-Mar-2000 Matt D. Robinson wrote: |>> Nothing regarding LKCD is being done on ARM at the moment; most of |>> the efforts are concentrated on the Alpha 2.2.X port, moving to a |>> 2.3.X base, and eventually a IA64 port. There are some individuals |>> looking at the analyzer portion for S/390 at the moment. |> |>-- |>http://www.bigfoot.com/~brihall |>Linux Consultant From owner-lkcd@oss.sgi.com Fri Mar 17 13:30:58 2000 Received: by oss.sgi.com id ; Fri, 17 Mar 2000 13:30:48 -0800 Received: from mailext02.compaq.com ([207.18.199.33]:25334 "HELO mailext02.compaq.com") by oss.sgi.com with SMTP id ; Fri, 17 Mar 2000 13:30:29 -0800 Received: by mailext02.compaq.com (Postfix, from userid 12345) id E54389A882; Fri, 17 Mar 2000 15:30:27 -0600 (CST) Received: from mailint12.im.hou.compaq.com (mailint12.compaq.com [207.18.199.190]) by mailext02.compaq.com (Postfix) with ESMTP id DDF6590D83; Fri, 17 Mar 2000 15:30:27 -0600 (CST) Received: by mailint12.im.hou.compaq.com (Postfix, from userid 12345) id 713364FB09; Fri, 17 Mar 2000 15:30:21 -0600 (CST) Received: from cxo3ns.cxo.dec.com (cxo3ns.cxo.dec.com [16.63.0.10]) by mailint12.im.hou.compaq.com (Postfix) with SMTP id 16DE54C901; Fri, 17 Mar 2000 15:30:21 -0600 (CST) Received: from brownfur.cxo.dec.com by cxo3ns.cxo.dec.com; (5.65v4.0/1.1.8.2/11Apr96-1001AM) id AA14126; Fri, 17 Mar 2000 14:30:26 -0700 Received: from dhcp32-218.cxo.dec.com by brownfur.cxo.dec.com (5.65v4.0/1.1.10.5/17Feb98-0753AM) id AA04100; Fri, 17 Mar 2000 14:30:26 -0700 Content-Length: 866 Message-Id: X-Mailer: XFMail 1.4.4 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Date: Fri, 17 Mar 2000 14:29:38 -0700 (MST) Reply-To: Brian Hall From: Brian Hall To: lkcd@oss.sgi.com, "Matt D. Robinson" Subject: Alpha port: lcrash/current.h Sender: owner-lkcd@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;lkcd-outgoing Porting lkcd to Alpha... After much fustration, I defined __LCRASH__ in lcrash.h, and modified current.h to remove the "warning: call-clobbered register used for global register variable" problem as follows: ------------------current.h------------------------ #ifndef _ALPHA_CURRENT_H #define _ALPHA_CURRENT_H #ifndef __LCRASH__ register struct task_struct *current __asm__("$8"); #else struct task_struct *current; #endif #endif /* !(_ALPHA_CURRENT_H) */ --------------------------------------------------- This allowed compilation to proceed, but seems dangerous- will lcrash need to access the current register during its processing? If this is wrong, what is the correct way to fix this? Trying to #ifndef header sections out (in the main Linux include tree) based on __LCRASH__ wasn't very productive. -- http://www.bigfoot.com/~brihall Linux Consultant From owner-lkcd@oss.sgi.com Fri Mar 17 14:05:07 2000 Received: by oss.sgi.com id ; Fri, 17 Mar 2000 14:04:57 -0800 Received: from zmamail01.zma.compaq.com ([161.114.64.101]:21257 "HELO zmamail01.zma.compaq.com") by oss.sgi.com with SMTP id ; Fri, 17 Mar 2000 14:04:30 -0800 Received: by zmamail01.zma.compaq.com (Postfix, from userid 12345) id 89AC1690; Fri, 17 Mar 2000 17:04:24 -0500 (EST) Received: from cxo3ns.cxo.dec.com (cxo3ns.cxo.dec.com [16.63.0.10]) by zmamail01.zma.compaq.com (Postfix) with SMTP id F021A426; Fri, 17 Mar 2000 17:04:23 -0500 (EST) Received: from brownfur.cxo.dec.com by cxo3ns.cxo.dec.com; (5.65v4.0/1.1.8.2/11Apr96-1001AM) id AA14040; Fri, 17 Mar 2000 15:04:23 -0700 Received: from dhcp32-218.cxo.dec.com by brownfur.cxo.dec.com (5.65v4.0/1.1.10.5/17Feb98-0753AM) id AA32703; Fri, 17 Mar 2000 15:04:22 -0700 Content-Length: 1645 Message-Id: X-Mailer: XFMail 1.4.4 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Mime-Version: 1.0 In-Reply-To: Date: Fri, 17 Mar 2000 15:03:35 -0700 (MST) Reply-To: Brian Hall From: Brian Hall To: lkcd@oss.sgi.com Subject: RE: Alpha port: lcrash/current.h Cc: "Matt D. Robinson" Sender: owner-lkcd@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;lkcd-outgoing Actually, it works better if the #define/#undef of __LCRASH__ is done in cmd/lcrash/lib/libklib/asm/kl_kernel.h, instead of in lcrash.h: --------------------kl_kernel.h--------------------- #include #ifdef CONFIG_SMP #ifndef __SMP__ #define __SMP__ #endif #endif #define __LCRASH__ #include #undef __LCRASH__ /* #include */ /* We have to do some stuff to get rid of some warning messages that * resulted from us using both standard and kernel header files (yuch!). */ #ifdef __NFDBITS #undef __NFDBITS #endif #ifdef __FDMASK #undef __FDMASK #endif #define off_t off_t #include --------------------------------------------------------- On 17-Mar-2000 Brian Hall wrote: > Porting lkcd to Alpha... > > After much fustration, I defined __LCRASH__ in lcrash.h, and modified > current.h > to remove the "warning: call-clobbered register used for global register > variable" problem as follows: > > ------------------current.h------------------------ >#ifndef _ALPHA_CURRENT_H >#define _ALPHA_CURRENT_H > >#ifndef __LCRASH__ > register struct task_struct *current __asm__("$8"); >#else > struct task_struct *current; >#endif > >#endif /* !(_ALPHA_CURRENT_H) */ > --------------------------------------------------- > > This allowed compilation to proceed, but seems dangerous- will lcrash need to > access the current register during its processing? If this is wrong, what is > the correct way to fix this? Trying to #ifndef header sections out (in the > main Linux include tree) based on __LCRASH__ wasn't very productive. -- http://www.bigfoot.com/~brihall Linux Consultant From owner-lkcd@oss.sgi.com Fri Mar 17 14:06:47 2000 Received: by oss.sgi.com id ; Fri, 17 Mar 2000 14:06:38 -0800 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:2327 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 17 Mar 2000 14:06:14 -0800 Received: from loco.csd.sgi.com (loco.csd.sgi.com [150.166.1.62]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA04183 for ; Fri, 17 Mar 2000 14:09:40 -0800 (PST) mail_from (tjm@sgi.com) Received: from sgi.com (localhost.csd.sgi.com [127.0.0.1]) by loco.csd.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA73958; Fri, 17 Mar 2000 14:05:44 -0800 (PST) Message-ID: <38D2AC37.4B7B61F8@sgi.com> Date: Fri, 17 Mar 2000 14:05:43 -0800 From: Tom Morano X-Mailer: Mozilla 4.61C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: Brian Hall CC: lkcd@oss.sgi.com, "Matt D. Robinson" , tjm@sgi.com Subject: Re: Alpha port: lcrash/current.h References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-lkcd@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;lkcd-outgoing Brian Hall wrote: > > Porting lkcd to Alpha... > > After much fustration, I defined __LCRASH__ in lcrash.h, and modified current.h > to remove the "warning: call-clobbered register used for global register > variable" problem as follows: > > ------------------current.h------------------------ > #ifndef _ALPHA_CURRENT_H > #define _ALPHA_CURRENT_H > > #ifndef __LCRASH__ > register struct task_struct *current __asm__("$8"); > #else > struct task_struct *current; > #endif > > #endif /* !(_ALPHA_CURRENT_H) */ > --------------------------------------------------- > > This allowed compilation to proceed, but seems dangerous- will lcrash need to > access the current register during its processing? If this is wrong, what is > the correct way to fix this? Trying to #ifndef header sections out (in the > main Linux include tree) based on __LCRASH__ wasn't very productive. This isn't "wrong" from an lcrash point of view. lcrash is only including kernel header files to gain access to kernel type declarations. Since it is not actually a part of the kernel, it doesn't really need much of the rest of the stuff that gets declared. I wish there was some clean way to declare kernel types in lcrash without having to deal with all the rest of the junk in the kernel header files. I would prefer that no kernel header files get modified (except when needed by the kernel portion of LKCD)...but that may not be possible in the alpha case. If it gets us through the build without warnings, then it's a good thing. Tom From owner-lkcd@oss.sgi.com Tue Mar 21 12:19:53 2000 Received: by oss.sgi.com id ; Tue, 21 Mar 2000 12:19:43 -0800 Received: from mailext04.compaq.com ([207.18.199.42]:2184 "HELO mailext04.compaq.com") by oss.sgi.com with SMTP id ; Tue, 21 Mar 2000 12:19:26 -0800 Received: by mailext04.compaq.com (Postfix, from userid 12345) id C4EC0104C49; Tue, 21 Mar 2000 14:19:24 -0600 (CST) Received: from mailint12.im.hou.compaq.com (mailint12.compaq.com [207.18.199.190]) by mailext04.compaq.com (Postfix) with ESMTP id A20E9FB101; Tue, 21 Mar 2000 14:19:24 -0600 (CST) Received: by mailint12.im.hou.compaq.com (Postfix, from userid 12345) id 4415B4FB08; Tue, 21 Mar 2000 14:19:18 -0600 (CST) Received: from cxo3ns.cxo.dec.com (cxo3ns.cxo.dec.com [16.63.0.10]) by mailint12.im.hou.compaq.com (Postfix) with SMTP id CF3EA4C901; Tue, 21 Mar 2000 14:19:17 -0600 (CST) Received: from brownfur.cxo.dec.com by cxo3ns.cxo.dec.com; (5.65v4.0/1.1.8.2/11Apr96-1001AM) id AA28548; Tue, 21 Mar 2000 13:19:19 -0700 Received: from dhcp32-218.cxo.dec.com by brownfur.cxo.dec.com (5.65v4.0/1.1.10.5/17Feb98-0753AM) id AA19232; Tue, 21 Mar 2000 13:19:22 -0700 Content-Length: 654 Message-Id: X-Mailer: XFMail 1.4.4 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Date: Tue, 21 Mar 2000 13:18:09 -0700 (MST) Reply-To: Brian Hall From: Brian Hall To: "Gilford, Kevin" Subject: status: "successful" Alpha lcrash compile Cc: lkcd@oss.sgi.com, "Matt D. Robinson" Sender: owner-lkcd@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;lkcd-outgoing Just had my first successful complete compile of the lcrash tools on Alpha. This is not finished, but it is a definite milestone. There are tons of warnings ("cast to pointer from integer of different size"), and the disassembly cannot possibly be valid as it is still linked to the i386 debugger code. The various lcrash libs now lookup the Alpha equivalents of the i386 information, and the same has been done for the stack tracing output. Did some minor rearrangements in both the arch/alpha and arch/i386 trees (for example, of kl_get_ra) since they are invoked differently on Alpha vice Intel. -- http://www.bigfoot.com/~brihall Linux Consultant