perf/pm: Add number of all readings to the all_* log
Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: Id9f249926cf8a1ba3648e7a732b2a368dfb3d9e8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14655 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
f83a2d3aba
commit
daeadb177a
@ -329,8 +329,10 @@ dump_readings() {
|
||||
((total += ${reading%.*}))
|
||||
done
|
||||
avg=$((total / ${#readings[@]}))
|
||||
|
||||
readings+=("Total: ${#readings[@]}")
|
||||
printf '%u\n' "$avg" > "$output_dir/${prefix:+${prefix}_}avg_${sensor}.bmc.pm.txt"
|
||||
printf '%u\n' "${readings[@]}" > "$output_dir/${prefix:+${prefix}_}all_${sensor}.bmc.pm.txt"
|
||||
printf '%s\n' "${readings[@]}" > "$output_dir/${prefix:+${prefix}_}all_${sensor}.bmc.pm.txt"
|
||||
printf 'Dumped avg to %s\n' "$output_dir/${prefix:+${prefix}_}avg_${sensor}.bmc.pm.txt" >&2
|
||||
printf 'Dumped all to %s\n' "$output_dir/${prefix:+${prefix}_}all_${sensor}.bmc.pm.txt" >&2
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user