From 43e528d546708918f8d18b96936c58649f3217ca Mon Sep 17 00:00:00 2001 From: gobhardw Date: Wed, 3 Apr 2024 15:09:57 +0530 Subject: [PATCH] SWDEV-454917 Fix for multi-line input files in counter collection Change-Id: Ibe63514cb6e14fe628f60a9f1952df24802d6d05 [ROCm/rocprofiler commit: 79096aff75499dd6b28494e37dc7ab37ddbe50f3] --- projects/rocprofiler/bin/rocprofv2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocprofiler/bin/rocprofv2 b/projects/rocprofiler/bin/rocprofv2 index f949eb84c2..01a534f7e7 100755 --- a/projects/rocprofiler/bin/rocprofv2 +++ b/projects/rocprofiler/bin/rocprofv2 @@ -298,13 +298,13 @@ if [ -n "$PMC_LINES" ] && [ ! -n "$ATT_ARGV" ]; then export OUTPUT_PATH=$FINAL_PATH fi let COUNTER=COUNTER+1 - exec "${@}" + LD_PRELOAD=$LD_PRELOAD "${@}" if [ -n "$OUTPUT_PATH" ]; then echo -e "\nThe output path for the following counters: $OUTPUT_PATH" fi done else - exec "${@}" + LD_PRELOAD=$LD_PRELOAD "${@}" fi get_pmc_results_txt_path() {