diff --git a/bin/rpl_run.sh b/bin/rpl_run.sh index 1da7d5067b..8331ffc8cb 100755 --- a/bin/rpl_run.sh +++ b/bin/rpl_run.sh @@ -171,6 +171,7 @@ usage() { echo " The data directory is renoving autonatically if the directory is matching the temporary one, which is the default." echo " -t - to change the temporary directory [/tmp]" echo " By changing the temporary directory you can prevent removing the profiling data from /tmp or enable removing from not '/tmp' directory." + echo " -m - file defining custom metrics to use in-place of defaults." echo "" echo " --basenames - to turn on/off truncating of the kernel full function names till the base ones [off]" echo " --timestamp - to turn on/off the kernel disoatches timestamps, dispatch/begin/end/complete [off]" @@ -320,6 +321,9 @@ while [ 1 ] ; do if [ "$OUTPUT_DIR" = "-" ] ; then DATA_PATH=$TMP_DIR fi + elif [ "$1" = "-m" ] ; then + unset ROCP_METRICS + export ROCP_METRICS="$2" elif [ "$1" = "--list-basic" ] ; then export ROCP_INFO=b eval "$PKG_DIR/tool/ctrl" diff --git a/bin/tblextr.py b/bin/tblextr.py index 3e37b67098..7a30cd56c2 100755 --- a/bin/tblextr.py +++ b/bin/tblextr.py @@ -360,7 +360,7 @@ else: db = SQLiteDB(dbfile) hsa_trace_found = fill_api_db('HSA', db, indir, 'hsa', HSA_PID, COPY_PID, kern_dep_list, {}, 0) - hsa_activity_found = fill_copy_db('COPY', db, indir) + hsa_activity_found = fill_copy_db('COPY', db, indir) ops_filtr = fill_ops_db('OPS', db, indir) hip_trace_found = fill_api_db('HIP', db, indir, 'hip', HIP_PID, OPS_PID, [], ops_filtr, 1)