perf beauty socket: Sort the ipproto array entries
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 8 Nov 2021 13:39:32 +0000 (10:39 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Nov 2021 13:40:34 +0000 (10:40 -0300)
Just tidying up the output for human consumption.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/trace/beauty/socket.sh

index 6094e2411fa54ab1454d3eb96b2b80e701278368..7f1c9f0097c1920f7d96b1dd326f72275070d4b4 100755 (executable)
@@ -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"