* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Pull in panic.stp.
* tapset/guru-delay.stp: Fix typo.
* tapset/panic.stp: Fix 'nother super important typo.
* testsuite/buildok/guru.stp: Build-test the bad boys.
</chapter>
<chapter id="guru-delay.stp">
- <title>Delay tapset</title>
+ <title>Guru tapsets</title>
<para>
- Functions to insert a deliberate delay into a probe handler.
+ Functions to deliberately interfere with the system's behavior, in
+ order to inject faults or improve observability.
All the functions in this tapset require the use of
guru mode (<command>-g</command>).
</para>
!Itapset/guru-delay.stp
+!Itapset/panic.stp
</chapter>
<chapter id="string.stp">
%}
/**
- * sfunction mdelay - microsecond delay
+ * sfunction udelay - microsecond delay
* @us: Number of microseconds to delay.
*
* Description: This function inserts a multi-microsecond busy-delay into a probe handler.
* sfunction panic - trigger a panic
* @msg: message to pass to kernel's panic() function
*
- * Description: this function triggers an immediate panic of the running
+ * Description: This function triggers an immediate panic of the running
* kernel with a user-specified panic message.
* It requires guru mode.
*/
--- /dev/null
+#! stap -gp4
+
+probe begin {
+ mdelay(100);
+ udelay(-1);
+ panic("yo");
+}