]> sourceware.org Git - systemtap.git/commitdiff
tapset: panic() and friends
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 18 Jun 2012 19:42:24 +0000 (15:42 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 18 Jun 2012 19:42:24 +0000 (15:42 -0400)
* 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.

doc/SystemTap_Tapset_Reference/tapsets.tmpl
tapset/guru-delay.stp
tapset/panic.stp
testsuite/buildok/guru.stp [new file with mode: 0755]

index 6a31e684ec7d3f57f95127be537be635b13af217..025a24f497fb00e486ea697580c18a101ce175e1 100644 (file)
     </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">
index 6710a59a39f458ad7aa47530dfe5c3a968613672..34a95411761acda16879c865e74003028c02c4f1 100644 (file)
@@ -33,7 +33,7 @@ function mdelay(ms:long) %{
 %}
 
 /**
- * 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.
index 6fd69a95011c348d20d810ae70cf61127a83b659..4fe343483a26cd9032f85fb258b0b04b651d509d 100644 (file)
@@ -21,7 +21,7 @@
  * 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.
  */
diff --git a/testsuite/buildok/guru.stp b/testsuite/buildok/guru.stp
new file mode 100755 (executable)
index 0000000..6f34dbf
--- /dev/null
@@ -0,0 +1,7 @@
+#! stap -gp4
+
+probe begin {
+       mdelay(100);
+       udelay(-1);
+       panic("yo");
+}
This page took 0.062334 seconds and 5 git commands to generate.