]> sourceware.org Git - systemtap.git/commitdiff
PR11637: Updated probe point for test case
authorCody Santing <csanting@redhat.com>
Wed, 15 Jun 2016 17:04:06 +0000 (13:04 -0400)
committerCody Santing <csanting@redhat.com>
Wed, 15 Jun 2016 17:04:06 +0000 (13:04 -0400)
testsuite/systemtap.base/set_user.c
testsuite/systemtap.base/set_user.stp

index f2c3a9e6bd205f72cf5c0db13b02171c4811c48e..17ef78e232b7790dfbb7fbe1ac7bc3f04163a5e1 100644 (file)
@@ -2,11 +2,13 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/mman.h>
+#include <sys/sdt.h>
 int main()
 {
   char cbuf[64];
   
   mlockall(MCL_CURRENT);
   memset(cbuf,'a',sizeof(cbuf));
+  STAP_PROBE(set_user.exe,point);
   exit(0);
 }
index dfa844bbea87c78c6334968fdd6c4acc3648a5dd..561264d47ec1afa290caf00298de4d578c665ea3 100644 (file)
@@ -1,4 +1,4 @@
-global errors =0
+global errors = 0
 
 probe begin {  println("systemtap starting probe")  }
 probe end 
@@ -8,7 +8,7 @@ probe end
        println("systemtap test success")
 }
 
-probe process("set_user.exe").statement("*@set_user.c:11")
+probe process("set_user.exe").mark("point") 
 {     
   addr = $cbuf 
   try {
This page took 0.03234 seconds and 5 git commands to generate.