summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2011-10-12 16:29:16 -0400
committerChristopher Kenna <cjk@cs.unc.edu>2011-10-12 16:29:16 -0400
commitd3e2396b98e10a3110250a2619ae6c992c4e903c (patch)
tree7621d5e37fae4a73c6710d21db6f86fa56e39d26
parent6e9f8b2978245139f75ebc9b52999efe4ec6fe3e (diff)
Add level-A schedule event and don't include CPU 0 in this event.
-rwxr-xr-xsplit10
1 files changed, 8 insertions, 2 deletions
diff --git a/split b/split
index 123ea5c..d6a91e8 100755
--- a/split
+++ b/split
@@ -2,7 +2,7 @@
2 2
3SPLITTER=ft2csv 3SPLITTER=ft2csv
4 4
5EVENTS="SCHED SCHED2 RELEASE LVLA_RELEASE" 5EVENTS="SCHED SCHED2 RELEASE LVLA_RELEASE LVLA_SCHED"
6BE_EVENTS="" 6BE_EVENTS=""
7 7
8OPTS="-r" 8OPTS="-r"
@@ -14,8 +14,14 @@ function do_split() {
14 EP=${E/_/-} 14 EP=${E/_/-}
15 WHERE=`basename "$1" | sed -e 's/.ft//' -e 's/_idx=[^_]*'// ` 15 WHERE=`basename "$1" | sed -e 's/.ft//' -e 's/_idx=[^_]*'// `
16 TARGET="${WHERE}_overhead=$EP.$EXT" 16 TARGET="${WHERE}_overhead=$EP.$EXT"
17 LOCAL_OPTS=""
17 echo $1 $E ">>" $TARGET 18 echo $1 $E ">>" $TARGET
18 $SPLITTER $OPTS $E "$1" >> $TARGET 19 if [[ "$E" = "LVLA_SCHED" ]]
20 then
21 # Don't include CPU 0 in level-A scheduling overheads
22 LOCAL_OPTS="-a 0"
23 fi
24 $SPLITTER $OPTS ${LOCAL_OPTS} $E "$1" >> $TARGET
19 done 25 done
20 for E in $BE_EVENTS; do 26 for E in $BE_EVENTS; do
21 echo $E 27 echo $E