diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2011-10-12 16:29:16 -0400 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2011-10-12 16:29:16 -0400 |
commit | d3e2396b98e10a3110250a2619ae6c992c4e903c (patch) | |
tree | 7621d5e37fae4a73c6710d21db6f86fa56e39d26 | |
parent | 6e9f8b2978245139f75ebc9b52999efe4ec6fe3e (diff) |
Add level-A schedule event and don't include CPU 0 in this event.
-rwxr-xr-x | split | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | SPLITTER=ft2csv | 3 | SPLITTER=ft2csv |
4 | 4 | ||
5 | EVENTS="SCHED SCHED2 RELEASE LVLA_RELEASE" | 5 | EVENTS="SCHED SCHED2 RELEASE LVLA_RELEASE LVLA_SCHED" |
6 | BE_EVENTS="" | 6 | BE_EVENTS="" |
7 | 7 | ||
8 | OPTS="-r" | 8 | OPTS="-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 |