lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTinD76VCpZutts7Qcj0U0vNyxqNWxEKwVgz6ge3Y@mail.gmail.com>
Date:	Wed, 25 Aug 2010 17:20:52 +0800
From:	Hui Zhu <teawater@...il.com>
To:	"gdb@...rceware.org" <gdb@...rceware.org>,
	linux-kernel@...r.kernel.org
Cc:	Michael Snyder <msnyder@...are.com>,
	Marc Khouzam <marc.khouzam@...csson.com>,
	Thiago Jung Bauermann <thiago.bauermann@...il.com>,
	mqyoung@...il.com
Subject: Linux Kernel GDB tracepoint module 2010-8-25 release

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ