From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16810 invoked by alias); 16 Oct 2007 16:01:38 -0000 Received: (qmail 16801 invoked by uid 22791); 16 Oct 2007 16:01:37 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 16 Oct 2007 16:01:32 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id l9GG0lbk014602; Tue, 16 Oct 2007 12:01:02 -0400 Received: from pobox.yyz.redhat.com (pobox.yyz.redhat.com [10.15.31.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l9GG063v011416; Tue, 16 Oct 2007 12:00:16 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.yyz.redhat.com [10.15.16.9]) by pobox.yyz.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l9GFwZhs016240; Tue, 16 Oct 2007 11:59:56 -0400 Received: from ton.toronto.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 69D778001FF; Tue, 16 Oct 2007 11:58:19 -0400 (EDT) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id l9GFw2ti025602; Tue, 16 Oct 2007 11:58:02 -0400 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id l9GFw1Mn025601; Tue, 16 Oct 2007 11:58:01 -0400 X-Authentication-Warning: ton.toronto.redhat.com: fche set sender to fche@redhat.com using -f To: Yuxin_Zhuang@emc.com Cc: Subject: Re: Question about kernel module debug References: <3807473EFFA73343902C7F097E26900001E981A6@CORPUSMX60C.corp.emc.com> From: fche@redhat.com (Frank Ch. Eigler) Date: Tue, 16 Oct 2007 16:01:00 -0000 In-Reply-To: <3807473EFFA73343902C7F097E26900001E981A6@CORPUSMX60C.corp.emc.com> (Yuxin Zhuang's message of "Mon, 15 Oct 2007 23:09:04 -0400") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00166.txt.bz2 Yuxin_Zhuang@emc.com writes: > I've installed systemtap 0.5.8 on RHEL4 with kernel 2.6.9-42. This is over a year old. If you can, please upgrade to a later systemtap build. RHN should have 0.5.12 or even 0.5.14 by now. > [...] 1. Is the 'debuginfo' of the module needed by systemtap is > just the stuff created by gcc with option '-g'? Yes. > Will an additional '-O2' make a lot of difference? It will make the debugging information somewhat less precise, giving you fewer useful probe points. > 2. I've put the '.ko' file which is built with options '-g -O2' under > the proper search path and created a symbol link with the suffix > '.ko.debug' to it. [...] There should be no need for the .ko.debug file if the basic .ko file was not stripped. What does "readelf -S module.ko" say about .debug_* sections? - FChE