This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/11506] Support Crash/kdump with systemtap memory flight recorder mode


------- Additional Comments From wcohen at redhat dot com  2010-04-20 19:33 -------
I was able to get data out of the vmcore with the staplog.so
Set up a RHEL5 system following instructions at:

http://kbase.redhat.com/faq/docs/DOC-6039

Ran a systemtap in /root with:

stap -F /usr/share/doc/systemtap-1.2/examples/io/iotime.stp -m iotime

Let it run for a while then crashed the system. The system will dump the data
then reboot. Logged back in and started up crash on vmcore with. as root with:

crash /var/crash/2010-04-19-11\:14/vmcore /usr/lib/debug/lib/modules/`uname
-r`/vmlinux

get the debug for the systemtap module:

mod -s iotime /root/iotime.ko

load the staplog.so to extract the data:

extend /usr/lib64/systemtap/staplog.so

Extract data with:

staplog iotime

Should get something like the following message:

--- generating 'iotime/global' ---
  subbufs ready on relayfs:1
  n_subbufs:8, read subbuf from:0(0) to:0(0) (offset:0-2855)

Exit crash. Then able to look at the output with:

more iotime/global
657280 3405 (hald-addon-stor) access /dev/hdd read: 0 write: 0
758141 3407 (hald-addon-stor) access /dev/hdc read: 0 write: 0
979276 3103 (sendmail) access /proc/loadavg read: 4096 write: 0
979286 3103 (sendmail) iotime /proc/loadavg time: 10
1433085 3127 (gpm) access /dev/tty0 read: 0 write: 0
2659923 3405 (hald-addon-stor) access /dev/hdd read: 0 write: 0
2761004 3407 (hald-addon-stor) access /dev/hdc read: 0 write: 0
3433957 3127 (gpm) access /dev/tty0 read: 0 write: 0
4663811 3405 (hald-addon-stor) access /dev/hdd read: 0 write: 0
4764917 3407 (hald-addon-stor) access /dev/hdc read: 0 write: 0
4794042 2621 (irqbalance) access /proc/stat read: 4096 write: 0
4794049 2621 (irqbalance) iotime /proc/stat time: 123
4794218 2621 (irqbalance) access /proc/interrupts read: 4096 write: 0
4794223 2621 (irqbalance) iotime /proc/interrupts time: 85



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11506

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]