Diff of /perf_examples/self_count.c [4e98c0] .. [b187c7] Maximize Restore

  Switch to side-by-side view

--- a/perf_examples/self_count.c
+++ b/perf_examples/self_count.c
@@ -127,11 +127,8 @@
 	uint64_t offset = 0;
 	uint64_t val;
 	unsigned int seq;
-#if 0
-	double ratio;
-#endif
 	ssize_t ret;
-	int idx;
+	int idx = -1;
 
 	hdr = fds->buf;
 
@@ -166,17 +163,6 @@
 	values[0] += offset;
 
 	val   = perf_scale(values);
-#if 0
-	ratio = perf_scale_ratio(values);
-
-	if (ratio == 1.0)
-		printf("%20"PRIu64" %s (%s)\n", val, fds->name, offset == -1 ? "syscall" : "rdpmc");
-	else
-		if (ratio == 0.0)
-			printf("%20"PRIu64" %s (did not run: incompatible events, too many events in a group, competing session)\n", val, fds->name);
-		else
-			printf("%20"PRIu64" %s (scaled from %.2f%% of time)\n", val, fds->name, ratio*100.0);
-#endif
 	return val;
 }