public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/11506] Support Crash/kdump with systemtap memory flight recorder mode
       [not found] <bug-11506-1110@http.sourceware.org/bugzilla/>
@ 2010-10-20 18:03 ` wcohen at redhat dot com
  0 siblings, 0 replies; 5+ messages in thread
From: wcohen at redhat dot com @ 2010-10-20 18:03 UTC (permalink / raw)
  To: systemtap

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

William Cohen <wcohen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from William Cohen <wcohen at redhat dot com> 2010-10-20 18:02:57 UTC ---
Commit 38105915a1d8210e25213eba9d0f1c1c8c22f808 fixes this in upstream and
includes staplog.so in the systemtap-runtime rpm.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug runtime/11506] Support Crash/kdump with systemtap memory flight recorder mode
  2010-04-16 20:51 [Bug runtime/11506] New: " wcohen at redhat dot com
                   ` (2 preceding siblings ...)
  2010-04-21  6:20 ` wcohen at redhat dot com
@ 2010-04-21  9:17 ` wcohen at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: wcohen at redhat dot com @ 2010-04-21  9:17 UTC (permalink / raw)
  To: systemtap


------- 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug runtime/11506] Support Crash/kdump with systemtap memory flight recorder mode
  2010-04-16 20:51 [Bug runtime/11506] New: " wcohen at redhat dot com
  2010-04-16 21:22 ` [Bug runtime/11506] " wcohen at redhat dot com
  2010-04-17 14:56 ` wcohen at redhat dot com
@ 2010-04-21  6:20 ` wcohen at redhat dot com
  2010-04-21  9:17 ` wcohen at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: wcohen at redhat dot com @ 2010-04-21  6:20 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From wcohen at redhat dot com  2010-04-20 19:19 -------
Created an attachment (id=4743)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4743&action=view)
Build crash support in systemtap rpms by default.

Revised the patch to allow crash support (staplog.so) to be turned on and off.
Earlier version of patch did not exclude the staplog.so file from the manifest
when crash support was turned off.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #4731 is|0                           |1
           obsolete|                            |
Attachment #4732 is|0                           |1
           obsolete|                            |


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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug runtime/11506] Support Crash/kdump with systemtap memory flight recorder mode
  2010-04-16 20:51 [Bug runtime/11506] New: " wcohen at redhat dot com
  2010-04-16 21:22 ` [Bug runtime/11506] " wcohen at redhat dot com
@ 2010-04-17 14:56 ` wcohen at redhat dot com
  2010-04-21  6:20 ` wcohen at redhat dot com
  2010-04-21  9:17 ` wcohen at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: wcohen at redhat dot com @ 2010-04-17 14:56 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From wcohen at redhat dot com  2010-04-16 20:29 -------
Created an attachment (id=4732)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4732&action=view)
Alternative spec file patch to put staplog.so in systemtap-runtime rpm


-- 


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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug runtime/11506] Support Crash/kdump with systemtap memory flight recorder mode
  2010-04-16 20:51 [Bug runtime/11506] New: " wcohen at redhat dot com
@ 2010-04-16 21:22 ` wcohen at redhat dot com
  2010-04-17 14:56 ` wcohen at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: wcohen at redhat dot com @ 2010-04-16 21:22 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From wcohen at redhat dot com  2010-04-16 19:33 -------
Created an attachment (id=4731)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4731&action=view)
Proposed patch to create a systemtap-crash sub rpm

This patch splits out the crash support into a separate module.

-- 


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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-20 18:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11506-1110@http.sourceware.org/bugzilla/>
2010-10-20 18:03 ` [Bug runtime/11506] Support Crash/kdump with systemtap memory flight recorder mode wcohen at redhat dot com
2010-04-16 20:51 [Bug runtime/11506] New: " wcohen at redhat dot com
2010-04-16 21:22 ` [Bug runtime/11506] " wcohen at redhat dot com
2010-04-17 14:56 ` wcohen at redhat dot com
2010-04-21  6:20 ` wcohen at redhat dot com
2010-04-21  9:17 ` wcohen at redhat dot com

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).