From: Arnaldo Carvalho de Melo Date: Mon, 8 Nov 2021 13:38:27 +0000 (-0300) Subject: perf beauty socket: Rename 'regex' to 'ipproto_regex' X-Git-Tag: v6.6.17~8807^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82e3664b0acce156bc8d366ec38374f314cd0111;p=platform%2Fkernel%2Flinux-rpi.git perf beauty socket: Rename 'regex' to 'ipproto_regex' Paving the way for more regexps to be used here. Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/trace/beauty/socket.sh b/tools/perf/trace/beauty/socket.sh index 789b3d8..6094e24 100755 --- a/tools/perf/trace/beauty/socket.sh +++ b/tools/perf/trace/beauty/socket.sh @@ -8,9 +8,9 @@ else fi printf "static const char *socket_ipproto[] = {\n" -regex='^[[:space:]]+IPPROTO_(\w+)[[:space:]]+=[[:space:]]+([[:digit:]]+),.*' +ipproto_regex='^[[:space:]]+IPPROTO_(\w+)[[:space:]]+=[[:space:]]+([[:digit:]]+),.*' -egrep $regex ${uapi_header_dir}/in.h | \ - sed -r "s/$regex/\2 \1/g" | \ +egrep $ipproto_regex ${uapi_header_dir}/in.h | \ + sed -r "s/$ipproto_regex/\2 \1/g" | \ sort | xargs printf "\t[%s] = \"%s\",\n" printf "};\n"