Inserting delays with systemtap
Frank Ch. Eigler
fche@redhat.com
Wed Mar 7 15:24:00 GMT 2012
bmr wrote:
> [...]
> %{
> #include <linux/delay.h>
> %}
>
> function mdelay(ms:long) %{
> /* guru */
> mdelay(THIS->ms);
> %}
> [...]
> Would it be worth having something like this in a tapset?
Absolutely. Would you mind writing it up as a patch against some new
file like .../tapset/guru-delay.stp?
> The requirement to use STP_NO_OVERLOAD for long-running delays [...]
... is a problem. It may be possible to automagically disable
overload processing if any of these functions are used, by including:
%{
/* guru */
#undef STP_OVERLOAD
%}
in the tapset file.
- FChE
More information about the Systemtap
mailing list