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
Badari Pulavarty <pbadari@us.ibm.com> writes:
> > > [...]
> > > Is there a way, I can print in the order of IO sizes easily ?
> > There will be a way of iterating in a sorted order, probably
> > expressed syntactically like this: [...]
> > # foreach (ascending(io) in iosizes) {
> Does this functionality exists today ?
Yes, it does. Just to keep the parsing simple, I implemented a simple
suffix syntax. For example:
foreach (io+ in iosizes) { ... } // in increasing order of io index
foreach (io in iosizes-) { ... } // in decreasing order of iosizes[]
- FChE