Skip to content

Commit d330f8d

Browse files
committed
Use absolute paths for . common
Otherwise it can pick up other common in PATH first...
1 parent 291de25 commit d330f8d

File tree

14 files changed

+15
-15
lines changed

14 files changed

+15
-15
lines changed

bench-all

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Run all benchmarks for this repo, and save the results to the
33
# benchmark repo, which should be cloned at ../linux-kernel-module-cheat-benchmarks.
44
set -eux
5-
. common
5+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
66

77
bench_build=false
88
bench_buildroot_baseline=false

bench-boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
3-
. common
3+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
44
caches='--caches --l2cache --l1d_size=1024kB --l1i_size=1024kB --l2_size=1024kB --l3_size=1024kB'
55
bench() (
66
common_bench_cmd "./run -a ${1}" "$common_bench_boot"

build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
3-
. common
3+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
44
set -- ${cli_build:-} "$@"
55
mkdir -p "${out_dir}"
66
br2_cli_file="${out_dir}/br2_cli"

gem5-bench-cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
3-
. common
3+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
44
generate_checkpoints=true
55
while getopts a:C OPT; do
66
case "$OPT" in

gem5-shell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
. common
2+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
33
while getopts M:n: OPT; do
44
case "$OPT" in
55
M)

gem5-stat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
3-
. common
3+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
44
while getopts a:hs: OPT; do
55
case "$OPT" in
66
a)

qemu-trace2txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
3-
. common
3+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
44
set -- ${cli_qemu_trace2txt:-} "$@"
55
while getopts a: OPT; do
66
case "$OPT" in

run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
3-
. common
3+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
44
set -- ${cli_run:-} "$@"
55

66
# CLI handling.
@@ -364,7 +364,7 @@ if "$tmux"; then
364364
fi
365365
fi
366366
cmd="time ${cmd}"
367-
if ! "$debug_vm"; then
367+
if [ -z "$debug_vm" ]; then
368368
cmd="${cmd} \
369369
|& tee >(ts -s %.s > ${common_termout_file}) \
370370
"

rungdb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
3-
. common
3+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
44
set -- ${cli_rungdb:-} "$@"
55
after=
66
before=

rungdb-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
3-
. common
3+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
44
set -- ${cli_rungdb_user:-} "$@"
55
usage="$0 <exec-relative-path> [<brk-symbol>]"
66
gem5_opt=

0 commit comments

Comments
 (0)