This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Inserting delays with systemtap
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "Bryn M. Reeves" <bmr at redhat dot com>
- Cc: systemtap at sourceware dot org
- Date: Wed, 07 Mar 2012 10:23:39 -0500
- Subject: Re: Inserting delays with systemtap
- References: <4F573FE3.80402@redhat.com>
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