Skip to content

Commit

Permalink
perf beauty socket: Sort the ipproto array entries
Browse files Browse the repository at this point in the history
Just tidying up the output for human consumption.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
acmel committed Nov 12, 2021
1 parent 82e3664 commit d3f8283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/trace/beauty/socket.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit d3f8283

Please sign in to comment.