Enabling -m and --basenames option

Change-Id: Ic19ac28ab6ec842daf2a93a311ed7690b61b1e2a


[ROCm/rocprofiler commit: a76341e30c]
This commit is contained in:
Sriraksha Nagaraj
2023-10-02 14:08:26 +00:00
orang tua f4f9d5adf5
melakukan b5be707bcb
5 mengubah file dengan 81 tambahan dan 37 penghapusan
+15
Melihat File
@@ -31,6 +31,8 @@ usage() {
echo -e "${GREEN}-t | --test ${RESET} For Running the tests"
echo -e "${GREEN}-mt | --mem-test ${RESET} For Running the Memory Leak tests. This run requires building using -acb | --asan-clean-build option"
fi
echo -e "${GREEN}-m ${RESET} For providing an absolute path of a custom metrics file"
echo -e "${GREEN}--basenames ${RESET} For Truncating the kernel names"
echo -e "${GREEN}--hip-api ${RESET} For Collecting HIP API Traces"
echo -e "${GREEN}--hip-activity | --hip-trace ${RESET} For Collecting HIP API Activities Traces"
echo -e "${GREEN}--hsa-api ${RESET} For Collecting HSA API Traces"
@@ -163,6 +165,19 @@ while [ 1 ]; do
export ROCPROFILER_ENABLE_ROCSYS=$2
shift
shift
elif [ "$1" = "-m" ]; then
if [ $2 ] && [ -n $2 ] && [ -r $2 ]; then
export ROCPROFILER_METRICS_PATH=$2
else
echo -e "Error: \"$2\" path doesn't exist!"
usage
exit 1
fi
shift
shift
elif [ "$1" = "--basenames" ]; then
export ROCPROFILER_TRUNCATE_KERNEL_PATH=1
shift
elif [ "$1" = "--plugin" ]; then
if [ -n $2 ]; then
PLUGIN=$2