[PATCH 3/3] io_submit.stp: let the user know when the script is loaded

Frank Ch. Eigler fche@redhat.com
Mon May 28 18:41:00 GMT 2018


jmoyer wrote:

> I often find myself checking lsmod to see when the script is finally
> ready to collect data.  Just print a message from the begin probe to
> make it obvious when the script is ready.
> [...]
> +probe begin {
> +  printf("Ready!\n")
> +}

I merged this and the other patches (thanks!).  For the record though,
one may prefer a solution like

cat >> $HOME/.systemtap/rc
-E 'probe begin { printf("Ready!\n") }'
^D

so that every stap script you use automagically gets that extra probe
added on.


- FChE



More information about the Systemtap mailing list