util/analyze-contention-log.sh: print status output to stderr

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27983)
This commit is contained in:
Eugene Syromiatnikov
2025-07-08 15:52:04 +02:00
committed by Neil Horman
parent 99d0d23e05
commit d0b69fa74b
+3 -3
View File
@@ -17,7 +17,7 @@ TEMPDIR=$(mktemp -d /tmp/contention.XXXXXX)
trap "rm -rf $TEMPDIR" EXIT
echo "Splitting files"
echo "Splitting files" > /dev/stderr
#
#start by splitting the log into separate stack traces
@@ -38,7 +38,7 @@ declare -A filenames
declare -A total_latency
declare -A latency_counts
echo "Gathering latencies"
echo "Gathering latencies" > /dev/stderr
FILECOUNT=$(ls $TEMPDIR/individual_files/stacktrace*.* | wc -l)
currentidx=0
@@ -73,7 +73,7 @@ do
#
total_latency["$SHA1SUM"]=$(dc -e "$CUR_LATENCY $LATENCY + p")
latency_counts["$SHA1SUM"]=$(dc -e "$LATENCY_COUNT 1 + p")
echo -e -n "FILE $currentidx/$FILECOUNT \r"
echo -e -n "FILE $currentidx/$FILECOUNT \r" > /dev/stderr
currentidx=$((currentidx + 1))
done