]> sourceware.org Git - systemtap.git/commitdiff
stapbpf next.stp :: add diagnostic print for PR24659
authorSerhei Makarov <smakarov@redhat.com>
Mon, 10 Jun 2019 17:17:02 +0000 (13:17 -0400)
committerSerhei Makarov <smakarov@redhat.com>
Mon, 17 Jun 2019 20:07:02 +0000 (16:07 -0400)
testsuite/systemtap.bpf/bpf_tests/next.stp

index b2b99e0778ca5553146bf9822f22ab5477bf6891..db0bdb951296271b1e47eefac86adcfda77aec1a 100644 (file)
@@ -1,5 +1,7 @@
-global value
-global status
+// for pr24659
+
+global value//=2
+global status//=2
 
 probe begin {
   println("BEGIN")
@@ -14,10 +16,16 @@ probe kernel.function("vfs_read") {
 }
 
 probe kernel.function("vfs_read") {
+  printf("vfs_read\n")
+  printf("value %d\n", value)
+  printf("status %d\n", status)
   if (status != 2) exit()
 }
 
 probe end {
+  printf("end\n")
+  printf("value %d\n", value)
+  printf("status %d\n", status)
   if (status)
     println("END FAIL")
   else
This page took 0.024656 seconds and 5 git commands to generate.