]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
util/analyze-contention-log.sh: print status output to stderr
authorEugene Syromiatnikov <esyr@openssl.org>
Tue, 8 Jul 2025 13:52:04 +0000 (15:52 +0200)
committerNeil Horman <nhorman@openssl.org>
Thu, 7 Aug 2025 15:02:51 +0000 (11:02 -0400)
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)

util/analyze-contention-log.sh

index a107ed04b2162a310a18cbaf1f54f8790dec60b5..0051df21df10fb678dc66fd18c9b94e51ebbf722 100755 (executable)
@@ -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