-
Notifications
You must be signed in to change notification settings - Fork 351
Scripts: Updates to scripts using sof-testbench4 simulation #10545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d7879ae
b430646
2e90a89
074e730
70b46a7
09315da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,9 @@ usage() { | |
| echo | ||
| } | ||
|
|
||
| MODULES_S32="asrc dcblock drc drc_multiband eqfir eqiir gain src tdfb" | ||
| MODULES_S32_44K_48K="asrc src" | ||
| MODULES_S32="dcblock drc drc_multiband dolby-dax eqfir eqiir gain level_multiplier micsel \ | ||
| sound_dose stft_process_1536_240_ template_comp tdfb" | ||
lgirdwood marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| MODULES_S24="aria" | ||
|
|
||
| if [ -z "${SOF_WORKSPACE}" ]; then | ||
|
|
@@ -61,6 +63,13 @@ $HELPER -x -t development/sof-hda-benchmark-generic.tplg -n 1,2,3 \ | |
| -p "$PDIR/profile-$PLATFORM-benchmark.txt" > "$PDIR/log-$PLATFORM-benchmark.txt" | ||
|
|
||
| # Profile modules | ||
| for mod in $MODULES_S32_44K_48K | ||
| do | ||
| echo "Profiling $mod ..." | ||
| $HELPER -r 44100 -x -m "$mod" \ | ||
| -p "$PDIR/profile-$PLATFORM-$mod.txt" > "$PDIR/log-$PLATFORM-$mod.txt" | ||
| done | ||
|
Comment on lines
+66
to
+71
|
||
|
|
||
| for mod in $MODULES_S32 | ||
| do | ||
| echo "Profiling $mod ..." | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,8 @@ usage() { | |
| echo " -n <pipelines>, default 1,2" | ||
| echo " -o <output wav>, default none" | ||
| echo " -p <profiling result text>, use with -x, default none" | ||
| echo " -r <rate>, default 48000" | ||
| echo " -r <rate>, input rate, default 48000" | ||
| echo " -R <rate>, output rate, default 48000" | ||
| echo " -t <force topology>, default none, e.g. production/sof-hda-generic.tplg" | ||
| echo " -v runs with valgrind, not available with -x" | ||
| echo " -x runs testbench with xt-run simulator" | ||
|
|
@@ -55,7 +56,7 @@ PROFILE=false | |
| TPLG0= | ||
| VALGRIND= | ||
|
|
||
| while getopts "b:c:hi:km:n:o:p:r:t:vx" opt; do | ||
| while getopts "b:c:hi:km:n:o:p:r:R:t:vx" opt; do | ||
|
||
| case "${opt}" in | ||
| b) | ||
| BITS=${OPTARG} | ||
|
|
@@ -89,6 +90,8 @@ while getopts "b:c:hi:km:n:o:p:r:t:vx" opt; do | |
| ;; | ||
| r) | ||
| RATE_IN=${OPTARG} | ||
| ;; | ||
| R) | ||
| RATE_OUT=${OPTARG} | ||
| ;; | ||
|
Comment on lines
91
to
96
|
||
| t) | ||
|
|
@@ -147,10 +150,10 @@ if [[ "$XTRUN" == true ]]; then | |
| echo " input: $INFILE1, output: $OUTFILE1, trace: $TRACEFILE, profile: $PROFILETXT" | ||
| source "$XTB4_SETUP" | ||
| if [[ $PROFILE == true ]]; then | ||
| "$XTENSA_PATH"/xt-run --profile="$PROFILEOUT" "$XTB4" $OPTS 2> "$TRACEFILE" | ||
| "$XTENSA_PATH"/xt-run --mem_model --profile="$PROFILEOUT" "$XTB4" $OPTS 2> "$TRACEFILE" | ||
| "$XTENSA_PATH"/xt-gprof "$XTB4" "$PROFILEOUT" > "$PROFILETXT" | ||
| else | ||
| "$XTENSA_PATH"/xt-run "$XTB4" $OPTS 2> "$TRACEFILE" | ||
| "$XTENSA_PATH"/xt-run --mem_model "$XTB4" $OPTS 2> "$TRACEFILE" | ||
|
Comment on lines
+153
to
+156
|
||
| fi | ||
| else | ||
| if [ ! -x "$TB4" ]; then | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable name
MODULES_S32_44K_48Kimplies these modules should be profiled at both 44.1k and 48k, but the loop only runs at 44100. Either rename the variable to match the implemented behavior (e.g.,MODULES_S32_44K) or add a second run at 48000 to align with the name.