mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Use absolute paths for . common
Otherwise it can pick up other common in PATH first...
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# Run all benchmarks for this repo, and save the results to the
|
# Run all benchmarks for this repo, and save the results to the
|
||||||
# benchmark repo, which should be cloned at ../linux-kernel-module-cheat-benchmarks.
|
# benchmark repo, which should be cloned at ../linux-kernel-module-cheat-benchmarks.
|
||||||
set -eux
|
set -eux
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
|
|
||||||
bench_build=false
|
bench_build=false
|
||||||
bench_buildroot_baseline=false
|
bench_buildroot_baseline=false
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
caches='--caches --l2cache --l1d_size=1024kB --l1i_size=1024kB --l2_size=1024kB --l3_size=1024kB'
|
caches='--caches --l2cache --l1d_size=1024kB --l1i_size=1024kB --l2_size=1024kB --l3_size=1024kB'
|
||||||
bench() (
|
bench() (
|
||||||
common_bench_cmd "./run -a ${1}" "$common_bench_boot"
|
common_bench_cmd "./run -a ${1}" "$common_bench_boot"
|
||||||
|
|||||||
2
build
2
build
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
set -- ${cli_build:-} "$@"
|
set -- ${cli_build:-} "$@"
|
||||||
mkdir -p "${out_dir}"
|
mkdir -p "${out_dir}"
|
||||||
br2_cli_file="${out_dir}/br2_cli"
|
br2_cli_file="${out_dir}/br2_cli"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
generate_checkpoints=true
|
generate_checkpoints=true
|
||||||
while getopts a:C OPT; do
|
while getopts a:C OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
while getopts M:n: OPT; do
|
while getopts M:n: OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
M)
|
M)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
while getopts a:hs: OPT; do
|
while getopts a:hs: OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
a)
|
a)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
set -- ${cli_qemu_trace2txt:-} "$@"
|
set -- ${cli_qemu_trace2txt:-} "$@"
|
||||||
while getopts a: OPT; do
|
while getopts a: OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
|
|||||||
4
run
4
run
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
set -- ${cli_run:-} "$@"
|
set -- ${cli_run:-} "$@"
|
||||||
|
|
||||||
# CLI handling.
|
# CLI handling.
|
||||||
@@ -364,7 +364,7 @@ if "$tmux"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cmd="time ${cmd}"
|
cmd="time ${cmd}"
|
||||||
if ! "$debug_vm"; then
|
if [ -z "$debug_vm" ]; then
|
||||||
cmd="${cmd} \
|
cmd="${cmd} \
|
||||||
|& tee >(ts -s %.s > ${common_termout_file}) \
|
|& tee >(ts -s %.s > ${common_termout_file}) \
|
||||||
"
|
"
|
||||||
|
|||||||
2
rungdb
2
rungdb
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
set -- ${cli_rungdb:-} "$@"
|
set -- ${cli_rungdb:-} "$@"
|
||||||
after=
|
after=
|
||||||
before=
|
before=
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
set -- ${cli_rungdb_user:-} "$@"
|
set -- ${cli_rungdb_user:-} "$@"
|
||||||
usage="$0 <exec-relative-path> [<brk-symbol>]"
|
usage="$0 <exec-relative-path> [<brk-symbol>]"
|
||||||
gem5_opt=
|
gem5_opt=
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
set -- ${cli_rungdbserver:-} "$@"
|
set -- ${cli_rungdbserver:-} "$@"
|
||||||
while getopts a:g OPT; do
|
while getopts a:g OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
|
|||||||
2
runtc
2
runtc
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
set -- ${cli_runtc:-} "$@"
|
set -- ${cli_runtc:-} "$@"
|
||||||
while getopts a:gh OPT; do
|
while getopts a:gh OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
set -- ${cli_trace_boot:-} "$@"
|
set -- ${cli_trace_boot:-} "$@"
|
||||||
while getopts a:g OPT; do
|
while getopts a:g OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
. common
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
||||||
set -- ${cli_trace2line:-} "$@"
|
set -- ${cli_trace2line:-} "$@"
|
||||||
while getopts a:g OPT; do
|
while getopts a:g OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
|
|||||||
Reference in New Issue
Block a user