summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2011-11-22 06:21:19 -0500
committerBjoern Brandenburg <bbb@mpi-sws.org>2011-11-22 06:21:19 -0500
commit25fe12893075ed300ac45b4ada24fabd502ba2a9 (patch)
treed048de49c3e813734008979146bf526428b918a0
parent4cbd3fc772324d659c296ae0ef9cb723e8c34db6 (diff)
parentdf393b378983cf925ab9145d6eb3e773a8aee50c (diff)
Merge branch 'master' of ssh://jupiter-cs.cs.unc.edu/home/litmus/overhead-analysis
-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