diff --git a/projects/rocprofiler/bin/rpl_run.sh b/projects/rocprofiler/bin/rpl_run.sh index d84d86fde2..3847e9db1c 100755 --- a/projects/rocprofiler/bin/rpl_run.sh +++ b/projects/rocprofiler/bin/rpl_run.sh @@ -179,6 +179,7 @@ usage() { echo " " echo " " echo "" + echo " --trace-start - to enable tracing on start [on]" echo " --trace-period - to enable trace with initial delay, with periodic sample length and rate" echo " Supported time formats: " echo " --obj-tracking - to turn on/off kernels code objects tracking [off]" @@ -393,6 +394,10 @@ while [ 1 ] ; do export ROCP_TIMESTAMP_ON=1 GEN_STATS=1 HIP_TRACE=1 + elif [ "$1" = "--trace-start" ] ; then + if [ "$2" = "off" ] ; then + export ROCP_CTRL_RATE="-1" + fi elif [ "$1" = "--trace-period" ] ; then period_expr="^\([^:]*\):\([^:]*\):\([^:]*\)$" period_ck=`echo "$2" | sed -n "s/"${period_expr}"/ok/p"`