From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26194 invoked by alias); 22 Jan 2014 14:56:37 -0000 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 Received: (qmail 26180 invoked by uid 89); 22 Jan 2014 14:56:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Jan 2014 14:56:33 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0MEuV8K002143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 22 Jan 2014 09:56:31 -0500 Received: from t510.usersys.redhat.com (vpn-61-15.rdu2.redhat.com [10.10.61.15]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s0MEuUck029839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 22 Jan 2014 09:56:30 -0500 Message-ID: <52DFDC1C.6000502@redhat.com> Date: Wed, 22 Jan 2014 14:56:00 -0000 From: David Smith User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Stuart Kendrick , systemtap@sourceware.org Subject: Re: updated example scripts References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-q1/txt/msg00052.txt.bz2 Sorry for the late reply to this. I meant to respond earlier, but got sidetracked... On 01/10/2014 11:26 AM, Stuart Kendrick wrote: > I have just installed systemtap-2.4 under Precise Pangolin > I compiled using gcc-4.8.1 > > Linux ubuntu 3.8.0-35-generic #50~precise1-Ubuntu SMP Wed Dec 4 > 17:25:51 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux > > Some of the example scripts run: dropwatch.stp and tcp_connections.stp... > > But some do not: nettop.stp, socktop, tcp_trace.stp ... > > The failing ones throw dwarf errors: > ./nettop.stp > > semantic error: not accessible at this address [man error::dwarf] > (0xffffffff815e6870, dieoffset: 0x54970df): identifier '$skb' at > /usr/local/share/systemtap/ > tapset/linux/networking.stp:82:27 > source: dev_name = kernel_string($skb->dev->name) > ^ > Pass 2: analysis failed. [man error::pass2] > Number of similar error messages suppressed: 15. > Rerun with -v to see them. > > The failing ones throw dwarf errors: > ./nettop.stp > > semantic error: not accessible at this address [man error::dwarf] > (0xffffffff815e6870, dieoffset: 0x54970df): identifier '$skb' at > /usr/local/share/systemtap/tapset/linux/networking.stp:82:27 > source: dev_name = kernel_string($skb->dev->name) > ^ > Pass 2: analysis failed. [man error::pass2] > Number of similar error messages suppressed: 15. > Rerun with -v to see them. > > I'm guessing that these scripts are running into the challenges of > finding particular variables: > https://sourceware.org/systemtap/wiki/TipContextVariables" > > Has anyone twinked with one or more of the three scripts above in such > a way as to make them more likely to run under 3.8.0-x? We don't guarantee that all examples run everywhere. Some examples were written to a specific kernel feature that may not exist in current kernels. In the case of nettop.stp, it compiles fine for me on 2.6.32-431.3.1.el6.x86_64 and 3.13.0-0.rc8.git4.1.fc21.x86_64. I don't seem to have a 3.8 kernel lying around. Your error above isn't coming from nettop.stp exactly, it is coming from tapset/linux/networking.stp. It is odd that you can't find $skb. Try the following command: # stap -L 'kernel.function("dev_queue_xmit")' -- David Smith dsmith@redhat.com Red Hat http://www.redhat.com 256.217.0141 (direct) 256.837.0057 (fax)