From 24167d07045c31bec96df3aee092c6c2b872b890 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 11 Sep 2019 16:02:30 -0500 Subject: [PATCH] scripts fixes Change-Id: I1d51bf4fe2ba62f26bafc251ae702e1064a3e5e3 [ROCm/rocprofiler commit: 6f6208f06ddc7c7b80170604355b0f443af74d55] --- projects/rocprofiler/bin/rpl_run.sh | 9 ++++++++- projects/rocprofiler/bin/tblextr.py | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/projects/rocprofiler/bin/rpl_run.sh b/projects/rocprofiler/bin/rpl_run.sh index 211343d955..6f5f9ecd3b 100755 --- a/projects/rocprofiler/bin/rpl_run.sh +++ b/projects/rocprofiler/bin/rpl_run.sh @@ -378,7 +378,14 @@ else csv_output=$RUN_DIR/${input_base}.csv fi -APP_CMD=$* +APP_CMD="" +for i in `seq 1 $#`; do + if [ -n "$APP_CMD" ] ; then + APP_CMD=$APP_CMD" " + fi + eval "arg=\${$i}" + APP_CMD=$APP_CMD\"$arg\" +done echo "RPL: profiling '$APP_CMD'" echo "RPL: input file '$INPUT_FILE'" diff --git a/projects/rocprofiler/bin/tblextr.py b/projects/rocprofiler/bin/tblextr.py index ebcd83df00..3e37b67098 100755 --- a/projects/rocprofiler/bin/tblextr.py +++ b/projects/rocprofiler/bin/tblextr.py @@ -332,7 +332,8 @@ if (len(sys.argv) < 2): fatal("Usage: " + sys.argv[0] + "