summaryrefslogtreecommitdiffstats
path: root/split
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-17 19:55:01 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-17 19:55:01 -0500
commit34282cf758de84992d8750d680431a6cede47e8f (patch)
tree20fc2cf841d6d0e7995597562ede07757d36c815 /split
parent80051d4eb87f908213637c2524336cbae7057068 (diff)
split directly to joint file
Diffstat (limited to 'split')
-rwxr-xr-xsplit15
1 files changed, 10 insertions, 5 deletions
diff --git a/split b/split
index 79a0116..6fbc051 100755
--- a/split
+++ b/split
@@ -8,14 +8,19 @@ BE_EVENTS="SEND_RESCHED"
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 EP=${E/_/-}
12 WHERE=`basename $1 | sed -e 's/.ft//'` 12 WHERE=`basename $1 | sed -e 's/.ft//' -e 's/_idx=[^_]*'// `
13 $SPLITTER $E $1 > "${WHERE}_overhead=$E.csv" 13 TARGET="${WHERE}_overhead=$EP.csv"
14 echo $1 $E ">>" $TARGET
15 $SPLITTER $E $1 >> $TARGET
14 done 16 done
15 for E in $BE_EVENTS; do 17 for E in $BE_EVENTS; do
16 echo $E 18 echo $E
17 WHERE=`basename $1 | sed -e 's/.ft//'` 19 EP=${E/_/-}
18 $SPLITTER -b $E $1 > "${WHERE}_overhead=$E.csv" 20 WHERE=`basename $1 | sed -e 's/.ft//' -e 's/_idx=[^_]*'// `
21 TARGET="${WHERE}_overhead=$EP.csv"
22 echo $1 $E ">>" $TARGET
23 $SPLITTER -b $E $1 >> ${TARGET}
19 done 24 done
20} 25}
21 26