Linux Kernel GDB tracepoint module 2010-8-25 release

From: Hui Zhu
Date: Wed Aug 25 2010 - 05:21:21 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/