From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 22 Oct 2024 10:36:11 +0000 Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM --- kernel/tools/perf/trace/beauty/prctl_option.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/tools/perf/trace/beauty/prctl_option.sh b/kernel/tools/perf/trace/beauty/prctl_option.sh index f247221..3109d7b 100755 --- a/kernel/tools/perf/trace/beauty/prctl_option.sh +++ b/kernel/tools/perf/trace/beauty/prctl_option.sh @@ -1,9 +1,10 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1 [ $# -eq 1 ] && header_dir=$1 || header_dir=tools/include/uapi/linux/ printf "static const char *prctl_options[] = {\n" -regex='^#define[[:space:]]+PR_([GS]ET\w+)[[:space:]]*([[:xdigit:]]+).*' +regex='^#define[[:space:]]+PR_(\w+)[[:space:]]*([[:xdigit:]]+).*' egrep $regex ${header_dir}/prctl.h | grep -v PR_SET_PTRACER | \ sed -r "s/$regex/\2 \1/g" | \ sort -n | xargs printf "\t[%s] = \"%s\",\n" -- Gitblit v1.6.2