Fized tapscripts/tapsets to work with 2.6
authorJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 09 Apr 2015 15:03:16 +0100
changeset 3 b3e318335eed
parent 2 ef575a931434
child 4 ca45a88235bd
Fized tapscripts/tapsets to work with 2.6
tapscripts/stx-jvm-stats.stp
tapset/stx_libbasic.stp
tapset/stx_librun.stp
--- a/tapscripts/stx-jvm-stats.stp	Sat Nov 30 22:31:53 2013 +0000
+++ b/tapscripts/stx-jvm-stats.stp	Thu Apr 09 15:03:16 2015 +0100
@@ -1,5 +1,5 @@
 global stats;
-global methods;
+#global methods;
 
 probe stx.jvm.monitorenter {
     if ( pid() != target() ) next;
@@ -33,7 +33,6 @@
 #   if (! methods[$__selector] ) {
 #        methods[$__selector] = 1;
 #        stats["Methods interpreted (distinct)"] <<< 1;
-#
 #    }
 
 }
@@ -68,7 +67,7 @@
 
     printf(" -- Execution --\n");
     print_counter("Methods interpreted");
-    print_counter("Methods interpreted( distinct)");
+ #   print_counter("Methods interpreted (distinct)");
     printf("\n");
 
     printf(" -- Classes --\n");
@@ -89,12 +88,4 @@
     printf(" -- GC --\n");
     print_counter("Scavenge");
     print_avg("Scavenge");
-    print("Scavenge Histogram");
-    print(@hist_linear(stats["Scavenge"], 0, 2076672, 32448));
-    
-
-    
-
-
-
 }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tapset/stx_libbasic.stp	Thu Apr 09 15:03:16 2015 +0100
@@ -0,0 +1,8 @@
+# Use-defined probes in stx:libbasic
+
+
+probe stx.libbasic = process("libstx_libbasic.so") { }
+
+probe stx.libbasic.ExternalStream.fopen = stx.libbasic.mark("stx_libbasic_ExternalStream_fopen") { }
+
+probe stx.libbasic.ExternalStream.fclose = stx.libbasic.mark("stx_libbasic_ExternalStream_fclose") { }
\ No newline at end of file
--- a/tapset/stx_librun.stp	Sat Nov 30 22:31:53 2013 +0000
+++ b/tapset/stx_librun.stp	Thu Apr 09 15:03:16 2015 +0100
@@ -13,5 +13,5 @@
 
 
 probe stx.gc.scavenge.begin = stx.librun.function("scavenge") { }
-probe stx.gc.scavenge.end   = stx.librun.function("scavenge@new.c:13829") { }
+probe stx.gc.scavenge.end   = stx.librun.function("scavenge").return { }
 probe stx.gc.scavenge       = stx.gc.scavenge.begin { }