diff --git a/programs/perf-bench-numa-mem/meta.yaml b/programs/perf-bench-numa-mem/meta.yaml index df36bcd5c..5169d1452 100644 --- a/programs/perf-bench-numa-mem/meta.yaml +++ b/programs/perf-bench-numa-mem/meta.yaml @@ -8,6 +8,7 @@ parameters: nr_processes: nr_threads: mem_proc: + thp_opt: extra_params: results: diff --git a/programs/perf-bench-numa-mem/run b/programs/perf-bench-numa-mem/run index 69760b730..61b3c61d9 100755 --- a/programs/perf-bench-numa-mem/run +++ b/programs/perf-bench-numa-mem/run @@ -2,6 +2,7 @@ # - nr_processes # - nr_threads # - mem_proc +# - thp_opt # - extra_params ## perf began as a tool for using the performance counters @@ -11,6 +12,13 @@ . $LKP_SRC/lib/unit.sh . $LKP_SRC/lib/reproduce-log.sh . $LKP_SRC/lib/debug.sh +. $LKP_SRC/lib/env.sh + +if [ -f /lkp/benchmarks/perf/perf ]; then + set_perf_path "/lkp/benchmarks/perf/perf" +else + set_perf_path "/usr/bin/perf" +fi [ -n "$nr_processes" ] || nr_processes=$nr_cpu @@ -18,4 +26,4 @@ mb_proc=$(to_mb $mem_proc) log_cmd numactl --hard || die "Test needs available numa" -log_cmd perf bench numa mem -p $nr_processes -t $nr_threads -m -0 -P $mb_proc $extra_params +log_cmd $perf bench numa mem -p $nr_processes -t $nr_threads -m -0 -P $mb_proc --thp $thp_opt $extra_params