Hosttrace via Dyninst

- complete with ctest support


[ROCm/rocprofiler-systems commit: 9ef3800986]
Tá an tiomantas seo le fáil i:
Jonathan R. Madsen tiomanta 2021-08-06 13:08:57 -05:00
1 tuismitheoir 9f2c93f47e
tiomantas 581c4122aa
69 comhad athraithe
+25144

Níor tháinig aon chomhaid le do chuardach

+37
Féach ar an gComhad
@@ -0,0 +1,37 @@
#!/bin/bash
SOURCE_DIR=..
BUILD_DIR=.
if [ -n "$1" ]; then SOURCE_DIR=$1; shift; fi
if [ -n "$1" ]; then BUILD_DIR=$1; shift; fi
echo "Testing 'cmake --build ${BUILD_DIR} --target all'..."
cmake --build ${BUILD_DIR} --target all
RET=$?
echo -n "Testing whether ${SOURCE_DIR}/include/timemory is a valid path... "
if [ ! -d ${SOURCE_DIR}/include/timemory ]; then
RET=1;
fi
echo " Done"
if [ "${RET}" -ne 0 ]; then
echo "Run from build directory within the source tree"
exit 1
fi
for i in $(find ${SOURCE_DIR}/include/timemory -type f | egrep '\.(h|hpp|c|cpp)$')
do
echo -n "Attempting to remove ${i}... "
rm $i
cmake --build ${BUILD_DIR} --target all &> /dev/null
RET=$?
if [ "${RET}" -ne 0 ]; then
git checkout ${i} &> /dev/null
echo "Failed"
else
git add ${i} &> /dev/null
echo "Success"
fi
done