From ece948a125cee051c694220e1306e4ec2e5e42d7 Mon Sep 17 00:00:00 2001 From: Hang Zhao Date: Sat, 30 Jul 2022 12:26:03 +0800 Subject: [PATCH] add ulockcheck tool Signed-off-by: Hang Zhao --- .../tools/detect/generic/ulockcheck/Makefile | 6 + .../detect/generic/ulockcheck/ulockcheck.sh | 169 ++++++++++++++++++ 2 files changed, 175 insertions(+) create mode 100644 source/tools/detect/generic/ulockcheck/Makefile create mode 100644 source/tools/detect/generic/ulockcheck/ulockcheck.sh diff --git a/source/tools/detect/generic/ulockcheck/Makefile b/source/tools/detect/generic/ulockcheck/Makefile new file mode 100644 index 00000000..55f21391 --- /dev/null +++ b/source/tools/detect/generic/ulockcheck/Makefile @@ -0,0 +1,6 @@ +target := ulockcheck +mods := ulockcheck +DEPEND := "prev{-p modin};post{-d modun}" + +include $(SRC)/mk/sh.mk + diff --git a/source/tools/detect/generic/ulockcheck/ulockcheck.sh b/source/tools/detect/generic/ulockcheck/ulockcheck.sh new file mode 100644 index 00000000..3f579cc6 --- /dev/null +++ b/source/tools/detect/generic/ulockcheck/ulockcheck.sh @@ -0,0 +1,169 @@ +#!/bin/sh +#****************************************************************# +# ScriptName: ulockcheck.sh +# Author: zhao.hang@linux.alibaba.com +# Create Date: 2021-10-18 18:30 +# Function: +#***************************************************************# + +CALLTRACE_LOG="parase_calltrace_log" +RAW_CALLTRACE_LOG="raw_calltrace_log" +SYSAK_BBOX="/proc/sysak/bbox" +LOG_DIR="/var/log/sysak/ulockcheck/" + +usage() { + echo "usage: ulockcheck