diff --git a/detect-plugin/detect-tools/arm64/binloader b/detect-plugin/detect-tools/arm64/binloader new file mode 100755 index 00000000..debfa3d1 Binary files /dev/null and b/detect-plugin/detect-tools/arm64/binloader differ diff --git a/detect-plugin/detect-tools/arm64/deadlockcheck b/detect-plugin/detect-tools/arm64/deadlockcheck new file mode 100755 index 00000000..9ea5808d Binary files /dev/null and b/detect-plugin/detect-tools/arm64/deadlockcheck differ diff --git a/detect-plugin/detect-tools/arm64/deadlockcheck.b b/detect-plugin/detect-tools/arm64/deadlockcheck.b new file mode 100644 index 00000000..2b93ea54 Binary files /dev/null and b/detect-plugin/detect-tools/arm64/deadlockcheck.b differ diff --git a/detect-plugin/detect-tools/arm64/detectlock b/detect-plugin/detect-tools/arm64/detectlock new file mode 100755 index 00000000..3e58b28c Binary files /dev/null and b/detect-plugin/detect-tools/arm64/detectlock differ diff --git a/detect-plugin/detect-tools/arm64/hijack_pthread.so b/detect-plugin/detect-tools/arm64/hijack_pthread.so new file mode 100755 index 00000000..a7677469 Binary files /dev/null and b/detect-plugin/detect-tools/arm64/hijack_pthread.so differ diff --git a/detect-plugin/detect-tools/bincheck_loader.sh b/detect-plugin/detect-tools/bincheck_loader.sh index ef2566f3..4cfaa1fe 100755 --- a/detect-plugin/detect-tools/bincheck_loader.sh +++ b/detect-plugin/detect-tools/bincheck_loader.sh @@ -1,11 +1,14 @@ #!/usr/bin/bash ARCH=`arch` +if [ "$ARCH" == "aarch64" ];then + ARCH="arm64" +fi DIR=`dirname $0` BINLOADER=$DIR/${ARCH}/binloader HIJACKLIBPATH=$DIR/${ARCH}/hijack_pthread.so -CLEANFILE=`ls /tmp/lock.info.*` +CLEANFILE=`ls /tmp/lock.info.* 2>/dev/null` for tmpfile in ${CLEANFILE} do pid=`echo $tmpfile | awk -F '.' '{print $3}'` diff --git a/detect-plugin/detect-tools/pidcheck.sh b/detect-plugin/detect-tools/pidcheck.sh index f6466cec..34346bab 100755 --- a/detect-plugin/detect-tools/pidcheck.sh +++ b/detect-plugin/detect-tools/pidcheck.sh @@ -1,6 +1,10 @@ #!/usr/bin/bash ARCH=`arch` +if [ "$ARCH" == "aarch64" ];then + ARCH="arm64" +fi + DIR=`dirname $0` CHECKTOOL=$DIR/${ARCH}/deadlockcheck