summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-08-02 19:22:36 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-08-02 19:22:36 -0400
commitdf393b378983cf925ab9145d6eb3e773a8aee50c (patch)
tree6c571e439fb735202f04becc3f9830f87779e864
parent6d2ae786660c87ab704e615f68843d21be70c37e (diff)
Count lock samples, too.
-rwxr-xr-xcount-all10
1 files changed, 8 insertions, 2 deletions
diff --git a/count-all b/count-all
index 7a353bc..45344f8 100755
--- a/count-all
+++ b/count-all
@@ -1,6 +1,6 @@
1#!/bin/bash 1#!/bin/bash
2 2
3EVENTS="SCHED SCHED2 TICK CXS RELEASE RELEASE-LATENCY SEND-RESCHED" 3EVENTS="SCHED SCHED2 TICK CXS RELEASE RELEASE-LATENCY SEND-RESCHED LOCK UNLOCK READ-LOCK READ-UNLOCK SYSCALL-IN SYSCALL-OUT"
4 4
5DIR="$1" 5DIR="$1"
6 6
@@ -12,6 +12,12 @@ fi
12for E in $EVENTS 12for E in $EVENTS
13do 13do
14 FILES=`find "$DIR" -iname "*overhead=${E}.bin"` 14 FILES=`find "$DIR" -iname "*overhead=${E}.bin"`
15 shuffle_truncate.py --count $FILES > counts_overhead=${E}.txt 15 if [ ! -z "$FILES" ]
16 then
17 echo "Counting $E..."
18 shuffle_truncate.py --count $FILES > counts_overhead=${E}.txt
19 else
20 echo "Skipping $E: no such samples found."
21 fi
16done 22done
17 23