Commit c70b9bb2 authored by Kamil Godzwon's avatar Kamil Godzwon Committed by Tomasz Zawadzki
Browse files

perf/run_perf: add a parameter for custom logs store location



This change will improve logs collecting by reducing a number
of steps needed to properly move and gather results by our CI.

The default path remains unchanged.

Signed-off-by: default avatarKamil Godzwon <kamilx.godzwon@intel.com>
Change-Id: Ibbbb8999a297f5866275c3cfc6f0a4748d63d633
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19934


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKarol Latecki <karol.latecki@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarPawel Piatek <pawelx.piatek@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 661bb0b7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ DPDKMEM=false
BPFTRACES=()
LVOL_BDEVS=()
DATE="$(date +'%m_%d_%Y_%H%M%S')"
OUTPUT_DIR=$testdir/results

function usage() {
	set +x
@@ -117,6 +118,7 @@ function usage() {
	echo "    --main-core             main (primary) core for DPDK (for bdevperf only)."
	echo
	echo "Other options:"
	echo "    --output-dir=PATH       Path to directory where results will be stored. [default=$OUTPUT_DIR]"
	echo "    --perftop           Run perftop measurements on the same CPU cores as specified in --cpu-allowed option."
	echo "    --dpdk-mem-stats    Dump DPDK memory stats during the test."
	echo "    --bpf-traces=LIST       Comma delimited list of .bt scripts for enabling BPF traces."
@@ -177,6 +179,7 @@ while getopts 'h-:' optchar; do
				bpf-traces=*) IFS="," read -r -a BPFTRACES <<< "${OPTARG#*=}" ;;
				latency-log) LATENCY_LOG=true ;;
				main-core=*) MAIN_CORE="${OPTARG#*=}" ;;
				output-dir=*) OUTPUT_DIR="${OPTARG#*=}" ;;
				*)
					usage $0 echo "Invalid argument '$OPTARG'"
					exit 1
@@ -194,7 +197,7 @@ while getopts 'h-:' optchar; do
	esac
done

result_dir=$testdir/results/perf_results_${BLK_SIZE}BS_${IODEPTH}QD_${RW}_${MIX}MIX_${PLUGIN}_${DATE}
result_dir=$OUTPUT_DIR/perf_results_${BLK_SIZE}BS_${IODEPTH}QD_${RW}_${MIX}MIX_${PLUGIN}_${DATE}
result_file=$result_dir/perf_results_${BLK_SIZE}BS_${IODEPTH}QD_${RW}_${MIX}MIX_${PLUGIN}_${DATE}.csv
mkdir -p $result_dir