summaryrefslogtreecommitdiffstats
path: root/split
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-17 19:25:47 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-17 19:25:47 -0500
commit80051d4eb87f908213637c2524336cbae7057068 (patch)
tree60f5f4267034b630ca6d3aa7041249bc469b0ad8 /split
parentf846731f6c43194c9e574cba5180f7678a3c1f48 (diff)
brush up split for dissertation experiments
Diffstat (limited to 'split')
-rwxr-xr-xsplit13
1 files changed, 9 insertions, 4 deletions
diff --git a/split b/split
index d745fd1..79a0116 100755
--- a/split
+++ b/split
@@ -2,21 +2,26 @@
2 2
3SPLITTER=ft2csv 3SPLITTER=ft2csv
4 4
5EVENTS="SCHED SCHED2 TICK CXS RELEASE" 5EVENTS="SCHED SCHED2 TICK CXS RELEASE RELEASE_LATENCY"
6#EVENTS=SCHED2 6BE_EVENTS="SEND_RESCHED"
7 7
8function do_split() { 8function do_split() {
9 printf "\nsplitting $1\n" 9 printf "\nsplitting $1\n"
10 for E in $EVENTS; do 10 for E in $EVENTS; do
11 echo $E 11 echo $E
12 WHERE=`basename $1 | sed -e 's/.ft//'` 12 WHERE=`basename $1 | sed -e 's/.ft//'`
13 $SPLITTER $E $1 > "$WHERE.$E.csv" 13 $SPLITTER $E $1 > "${WHERE}_overhead=$E.csv"
14 done
15 for E in $BE_EVENTS; do
16 echo $E
17 WHERE=`basename $1 | sed -e 's/.ft//'`
18 $SPLITTER -b $E $1 > "${WHERE}_overhead=$E.csv"
14 done 19 done
15} 20}
16 21
17if [ ! -f "$1" ]; then 22if [ ! -f "$1" ]; then
18 echo "Usage: split <file.ft>+" 23 echo "Usage: split <file.ft>+"
19 exit 1 24 exit 1
20fi 25fi
21 26
22while [ "" != "$*" ]; do 27while [ "" != "$*" ]; do