m5ops: move to factored .h file

Create empty subs for unsupported archs, much less messy for callers.

bst_vs_heap: create
This commit is contained in:
Ciro Santilli
2018-08-25 09:32:44 +01:00
parent eb4f4ba1d7
commit 7ccc1d3a8f
6 changed files with 142 additions and 64 deletions

11
bst-vs-heap Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
while getopts "${common_getopts_flags}" OPT; do
case "$OPT" in
?)
common_getopts_case "$OPT"
;;
esac
done
shift "$(($OPTIND - 1))"
"${common_root_dir}/gem5-stat" -a "$common_arch" | awk 'NR % 2 { printf "%d %s ", NR/2, $0; next; } 1'