From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18997 invoked by alias); 4 Sep 2010 15:04:45 -0000 Received: (qmail 18904 invoked by uid 22791); 4 Sep 2010 15:04:44 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 04 Sep 2010 15:04:38 +0000 Received: by wwi14 with SMTP id 14so1742193wwi.12 for ; Sat, 04 Sep 2010 08:04:36 -0700 (PDT) Received: by 10.216.1.17 with SMTP id 17mr1338380wec.99.1283612676195; Sat, 04 Sep 2010 08:04:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.181.213 with HTTP; Sat, 4 Sep 2010 08:04:16 -0700 (PDT) In-Reply-To: <20100904051138.GC10118@redhat.com> References: <1283504768.2100.43.camel@steven> <20100904051138.GC10118@redhat.com> From: Hui Zhu Date: Sat, 04 Sep 2010 15:04:00 -0000 Message-ID: Subject: Re: Linux Kernel GDB tracepoint module 2010-8-30 release To: "Frank Ch. Eigler" Cc: Steven , "gdb@sourceware.org" , linux-kernel@vger.kernel.org, Michael Snyder , Marc Khouzam , Thiago Jung Bauermann Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00029.txt.bz2 Hi Frank, I met a issue with build systemtap. Build it need (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel), but ubuntu looks don't have it. I try to build elfutils-0.148 with myself, but after I install it, when I compile other code, I got: /usr/local/bin/ld: /usr/lib/libelf.so.1: version `ELFUTILS_1.5' not found (required by /usr/local/bin/ld) collect2: ld returned 1 exit status It really scared me. Did you meet this issue in before? Thanks, Hui On Sat, Sep 4, 2010 at 13:11, Frank Ch. Eigler wrote: > Hi - > > On Sat, Sep 04, 2010 at 12:29:56PM +0800, Hui Zhu wrote: > >> [...] Could you talk about how it do call stack dump like following? >> (gdb) trace vfs_readdir >> Tracepoint 1 at 0xffffffff8113f7fc: file >> /home/teawater/kernel/linux-2.6/fs/readdir.c, line 24. >> (gdb) actions >> >collect *(unsigned char *)$rsp@512 > > probe kernel.function("vfs_readdir") { > =A0 // if you want the whole kernel-side backtrace, dwarf-unwound > =A0 print_backtrace() > =A0 // or else just hex-dump a region > =A0 printf("%*M\n", 512, register("rsp")) > } > > >> BTW, I was not find out which ARCH of the systemtap support in its >> website? =A0It support all the arch that kprobe support? > > Yes, basically, though it's mostly tested on RHELy platforms (x86, > powerpc, s390, ia64). > > - FChE >