This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
RE: simple (dumb) script to track sizes of IOs
- From: "Zhang, Yanmin" <yanmin dot zhang at intel dot com>
- To: "Frank Ch. Eigler" <fche at elastic dot org>, <systemtap at sources dot redhat dot com>
- Date: Sun, 9 Oct 2005 08:32:24 +0800
- Subject: RE: simple (dumb) script to track sizes of IOs
>>-----Original Message-----
>>From: systemtap-owner@sources.redhat.com
>>[mailto:systemtap-owner@sources.redhat.com] On Behalf Of Frank Ch. Eigler
>>Sent: 2005年10月9日 0:45
>>To: systemtap@sources.redhat.com
>>Subject: RE: simple (dumb) script to track sizes of IOs
>>
>>Hi -
>>
>>anmin.zhang@intel.com wrote:
>>
>>> Could a timer be added and the report be printed periodically? Users
>>> are used to see the data difference in timely style? The timer
>>> interval can be set as a parameter.
>>
>>Certainly. Add the single line
>>
>>probe timer.jiffies(1000 /* tune as required */) { report() }
Thanks. I know how to add timer to a stap script. I just want to suggest the developer to change the script of tracking sizes of IO to report statistics periodically instead of in the end.