!Itapset/conversions-guru.stp
</chapter>
+ <chapter id="guru-delay.stp">
+ <title>Delay tapset</title>
+ <para>
+ Functions to insert a deliberate delay into a probe handler.
+ All the functions in this tapset require the use of
+ guru mode (<command>-g</command>).
+ </para>
+!Itapset/guru-delay.stp
+ </chapter>
+
<chapter id="string.stp">
<title>A collection of standard string functions</title>
<para>
//
// <tapsetdescription>
-// Programmable delays at probe sites.
+// Functions in the guru-delay tapset allow a probe handler to insert
+// deliberate delays. This is sometimes useful as a fault-injection
+// aid. Due to its likelihood of interference with the kernel, guru
+// mode is required, and overload-prevention is suppressed.
// </tapsetdescription>
%{
#include <linux/delay.h>
%}
+
+/**
+ * sfunction mdelay - millisecond delay
+ * @ms: Number of milliseconds to delay.
+ *
+ * Description: This function inserts a multi-millisecond busy-delay into a probe handler.
+ * It requires guru mode.
+ */
function mdelay(ms:long) %{
/* guru */
mdelay(THIS->ms);
%}
+/**
+ * sfunction mdelay - microsecond delay
+ * @ms: Number of microseconds to delay.
+ *
+ * Description: This function inserts a multi-microsecond busy-delay into a probe handler.
+ * It requires guru mode.
+ */
function udelay(us:long) %{
/* guru */
udelay(THIS->us);