diff options
author | hiramatu <hiramatu> | 2007-12-13 20:58:18 +0000 |
---|---|---|
committer | hiramatu <hiramatu> | 2007-12-13 20:58:18 +0000 |
commit | 149eaccd1d42882b20471c4fdae07c32024cc654 (patch) | |
tree | d94038318e93302e360e2f855f77dc6b8eec1f3f | |
parent | abb26596759df8db70bf58246a3feab03c29c376 (diff) | |
download | systemtap-steved-149eaccd1d42882b20471c4fdae07c32024cc654.tar.gz systemtap-steved-149eaccd1d42882b20471c4fdae07c32024cc654.tar.xz systemtap-steved-149eaccd1d42882b20471c4fdae07c32024cc654.zip |
2007-12-13 Masami Hiramatsu <mhiramat@redhat.com>
* stap.1.in: Document about relay buffer sharing.
* NEWS: Document about relay buffer sharing and staplog crash extension.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | NEWS | 21 | ||||
-rw-r--r-- | stap.1.in | 15 |
3 files changed, 41 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2007-12-13 Masami Hiramatsu <mhiramat@redhat.com> + + * stap.1.in: Document about relay buffer sharing. + * NEWS: Document about relay buffer sharing and staplog crash extension. + 2007-12-12 Wenji Huang <wenji.huang@oracle.com> PR 5470 @@ -1,5 +1,26 @@ * What's new in version 0.6 / since version 0.5.15? +- Crash utility can retrieve systemtap's relay buffer from a kernel dump + image by using staplog which is a crash extension module. To use this + feature, type commands as below from crash(8)'s command line: + + crash> extend staplog.so + crash> help systemtaplog + + Then, you can see more precise help message. + +- You can share a relay buffer amoung several scripts and merge outputs from + several scripts by using "-DRELAY_HOST" and "-DRELAY_GUEST" options. + For example: + + # run a host script + % stap -ve 'probe begin{}' -o merged.out -DRELAY_HOST & + # wait until starting the host. + % stap -ve 'probe begin{print("hello ");exit()}' -DRELAY_GUEST + % stap -ve 'probe begin{print("world\n");exit()}' -DRELAY_GUEST + + Then, you'll see "hello world" in merged.out. + - You can add a conditional statement for each probe point or aliase, which is evaluated when the probe point is hit. If the condition is false, the whole probe body(including aliases) is skipped. For example: @@ -869,6 +869,21 @@ run a probe handler, default 1024. This number should be large enough for the probe handler's own needs, plus a safety margin. .PP +Multipule scripts can write data into a relay buffer concurrently. A host +script provides an interface for accessing its relay buffer to guest scripts. +Then, the output of the guests are merged into the output of the host. +To run a script as a host, execute stap with +.BR \-DRELAYHOST[=name] +option. The +.BR name +identifies your host script among several hosts. +While running the host, execute stap with +.BR \-DRELAYGUEST[=name] +to add a guest script to the host. +Note that you must unload guests before unloading a host. If there are some +guests connected to the host, unloading the host will be failed. + +.PP In case something goes wrong with .IR stap " or " staprun after a probe has already started running, one may safely kill both |