On Thu, 24 Jan 2008, Jim Cheetham wrote:
On Jan 24, 2008 11:02 AM, John Carter <[EMAIL PROTECTED]> wrote:
To handle the info flood I have my nifty "grace" script...
Nice script :-)
And much less work than switching to an OS like Solaris or IIRC
FreeBSD, who have Dtrace instead :-)
Hmm, thanks for reminding me.
I know about dtrace, but had forgotten about since last time I looked
Linux didn't have one. Now you mention it again I figure I would go
and see if that had changed yet....
...it has.
It's called systemtap...
The stap program is the front-end to the Systemtap tool. It accepts
probing instructions (written
in a simple scripting language), translates those instructions into C
code, compiles this C code,
and loads the resulting kernel module into a running Linux kernel to
perform the requested system
trace/probe functions. You can supply the script in a named file, from
standard input, or from the
command line. The program runs until it is interrupted by the user,
or if the script voluntarily
invokes the exit() function, or by sufficient number of soft errors.
The language, which is described in a later section, is strictly typed,
declaration free, procedu???
ral, and inspired by awk. It allows source code points or events in
the kernel to be associated
with handlers, which are subroutines that are executed synchronously.
It is somewhat similar con???
ceptually to "breakpoint command lists" in the gdb debugger.
Still only at version 0.5, so might not be what you want a heavily used
production system.
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : [EMAIL PROTECTED]
New Zealand