We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5381cc commit 1001983Copy full SHA for 1001983
tools/perf/trace/beauty/prctl_option.sh
@@ -4,7 +4,7 @@
4
[ $# -eq 1 ] && header_dir=$1 || header_dir=tools/include/uapi/linux/
5
6
printf "static const char *prctl_options[] = {\n"
7
-regex='^#define[[:space:]]+PR_(\w+)[[:space:]]*([[:xdigit:]]+).*'
+regex='^#define[[:space:]]{1}PR_(\w+)[[:space:]]*([[:xdigit:]]+)([[:space:]]*\/.*)?$'
8
egrep $regex ${header_dir}/prctl.h | grep -v PR_SET_PTRACER | \
9
sed -r "s/$regex/\2 \1/g" | \
10
sort -n | xargs printf "\t[%s] = \"%s\",\n"
0 commit comments