perf beauty socket: Sort the ipproto array entries

Just tidying up the output for human consumption.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-11-08 10:39:32 -03:00
parent 82e3664b0a
commit d3f82839f8
1 changed files with 1 additions and 1 deletions

View File

@ -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"