public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Linux Kernel GDB tracepoint module 2010-8-25 release
@ 2010-08-25  9:21 Hui Zhu
  0 siblings, 0 replies; only message in thread
From: Hui Zhu @ 2010-08-25  9:21 UTC (permalink / raw)
  To: gdb, linux-kernel
  Cc: Michael Snyder, Marc Khouzam, Thiago Jung Bauermann, mqyoung

http://kgtp.googlecode.com/files/kgtp_20100825.tar.bz2
Add support for action M.
Fix some bug.
Make debug more friendly.

The x86-32 backtrace bug is fixed.

And we can access to global variable in tracepoint.
For example:
(gdb) trace vfs_readdir
Tracepoint 1 at 0xc01ed740: file
/home/teawater/kernel/linux-2.6/fs/readdir.c, line 24.
(gdb) actions
Enter actions for tracepoint 1, one per line.
End with a line saying just "end".
>collect jiffies_64
>collect *file
>end
(gdb) tstart
(gdb) shell ls
arch    drivers   include  kernel    mm               Module.symvers
security  System.map  virt
block   firmware  init     lib       modules.builtin  net
sound     t           vmlinux
crypto  fs        ipc      Makefile  modules.order    scripts
source    usr         vmlinux.o
(gdb) tstop
(gdb) tfind
Found trace frame 0, tracepoint 1
#0  0xc01ed741 in vfs_readdir (file=0xf4063000, filler=0xc01ed580
<filldir64>, buf=0xd6dfdf90)
    at /home/teawater/kernel/linux-2.6/fs/readdir.c:24
24      {
(gdb) p jiffies_64
$1 = 4297248706
(gdb) p *file
$2 = {f_u = {fu_list = {next = 0xf5b8fe40, prev = 0xc500ad3c},
fu_rcuhead = {next = 0xf5b8fe40, func = 0xc500ad3c}},
  f_path = {mnt = 0xc35abd80, dentry = 0xf5d8


To get more message about howto use KGTP, please goto see the HOWTO in
https://code.google.com/p/kgtp/wiki/HOWTO

Thanks,
Hui

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-25  9:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-25  9:21 Linux Kernel GDB tracepoint module 2010-8-25 release Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).