From 06199c4f7489059579e9c0be7cae60189a3617b6 Mon Sep 17 00:00:00 2001 From: Chao Song Date: Tue, 5 Sep 2023 13:40:02 +0800 Subject: [PATCH] lib.sh: output performance to csv file This patch adds support to output sof performance statistics to csv file in sof-test. Signed-off-by: Chao Song --- case-lib/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/case-lib/lib.sh b/case-lib/lib.sh index 543ed489..f5f19305 100644 --- a/case-lib/lib.sh +++ b/case-lib/lib.sh @@ -901,9 +901,9 @@ perf_analyze() dlogi "Checking SOF component performance" if [ -e "$LOG_ROOT/mtrace.txt" ]; then if [ -e "$LOG_ROOT/dmesg.txt" ]; then - perf_cmd="sof_perf_analyzer.py --kmsg=$LOG_ROOT/dmesg.txt $LOG_ROOT/mtrace.txt" + perf_cmd="sof_perf_analyzer.py --kmsg=$LOG_ROOT/dmesg.txt --out2csv $LOG_ROOT/sof_perf.csv $LOG_ROOT/mtrace.txt " else - perf_cmd="sof_perf_analyzer.py $LOG_ROOT/mtrace.txt" + perf_cmd="sof_perf_analyzer.py --out2csv $LOG_ROOT/sof_perf.csv $LOG_ROOT/mtrace.txt" fi dlogc "$perf_cmd" eval "$perf_cmd" || {