From: Arnaldo Carvalho de Melo Date: Mon, 8 Nov 2021 13:39:32 +0000 (-0300) Subject: perf beauty socket: Sort the ipproto array entries X-Git-Tag: v5.16-rc1~13^2~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d3f82839f8d57e8679ef55773c432c89c7a7876a;p=thirdparty%2Flinux.git perf beauty socket: Sort the ipproto array entries Just tidying up the output for human consumption. Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/trace/beauty/socket.sh b/tools/perf/trace/beauty/socket.sh index 6094e2411fa54..7f1c9f0097c19 100755 --- a/tools/perf/trace/beauty/socket.sh +++ b/tools/perf/trace/beauty/socket.sh @@ -12,5 +12,5 @@ ipproto_regex='^[[:space:]]+IPPROTO_(\w+)[[:space:]]+=[[:space:]]+([[:digit:]]+) egrep $ipproto_regex ${uapi_header_dir}/in.h | \ sed -r "s/$ipproto_regex/\2 \1/g" | \ - sort | xargs printf "\t[%s] = \"%s\",\n" + sort -n | xargs printf "\t[%s] = \"%s\",\n" printf "};\n"