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

Jeff Moyer jmoyer@redhat.com
Tue May 29 15:01:00 GMT 2018


fche@redhat.com (Frank Ch. Eigler) writes:

> 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.

I didn't know I could do that.  Thanks!

-Jeff



More information about the Systemtap mailing list