summaryrefslogtreecommitdiffstats
path: root/tools/perf/trace
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2021-11-08 10:38:27 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-11-12 10:40:34 -0300
commit82e3664b0acce156bc8d366ec38374f314cd0111 (patch)
tree1fe36240c27dad3330a66a9a383466c0cf82f1b6 /tools/perf/trace
parent1a1edf33206c30b51638effa72a6940b7bc7618f (diff)
downloadlinux-82e3664b0acce156bc8d366ec38374f314cd0111.tar.gz
linux-82e3664b0acce156bc8d366ec38374f314cd0111.tar.bz2
linux-82e3664b0acce156bc8d366ec38374f314cd0111.zip
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 <acme@redhat.com>
Diffstat (limited to 'tools/perf/trace')
-rwxr-xr-xtools/perf/trace/beauty/socket.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/trace/beauty/socket.sh b/tools/perf/trace/beauty/socket.sh
index 789b3d8c6bcc..6094e2411fa5 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"