This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Linux Kernel GDB tracepoint module 2010-8-30 release
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: Steven <mqyoung at gmail dot com>, "gdb at sourceware dot org" <gdb at sourceware dot org>, linux-kernel at vger dot kernel dot org, Michael Snyder <msnyder at vmware dot com>, Marc Khouzam <marc dot khouzam at ericsson dot com>, Thiago Jung Bauermann <thiago dot bauermann at gmail dot com>
- Date: Sat, 4 Sep 2010 01:11:38 -0400
- Subject: Re: Linux Kernel GDB tracepoint module 2010-8-30 release
- References: <AANLkTimjO7sBzR55XkPB7dmZvxXqc8PS4UDsgptXVt90@mail.gmail.com> <1283504768.2100.43.camel@steven> <y0md3suzzuj.fsf@fche.csb> <AANLkTi=V13SpXeMzmnCWvh-ooAgnVP8kA5UsBsm89YDr@mail.gmail.com>
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") {
// if you want the whole kernel-side backtrace, dwarf-unwound
print_backtrace()
// or else just hex-dump a region
printf("%*M\n", 512, register("rsp"))
}
> BTW, I was not find out which ARCH of the systemtap support in its
> website? It support all the arch that kprobe support?
Yes, basically, though it's mostly tested on RHELy platforms (x86,
powerpc, s390, ia64).
- FChE