This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inserting delays with systemtap


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]