diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-11-08 10:39:32 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-11-12 10:40:34 -0300 |
commit | d3f82839f8d57e8679ef55773c432c89c7a7876a (patch) | |
tree | 896c6ba2a1c590915d87d059e080af00224154d0 /tools/perf/trace | |
parent | 82e3664b0acce156bc8d366ec38374f314cd0111 (diff) | |
download | linux-stable-d3f82839f8d57e8679ef55773c432c89c7a7876a.tar.gz linux-stable-d3f82839f8d57e8679ef55773c432c89c7a7876a.tar.bz2 linux-stable-d3f82839f8d57e8679ef55773c432c89c7a7876a.zip |
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>
Diffstat (limited to 'tools/perf/trace')
-rwxr-xr-x | tools/perf/trace/beauty/socket.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/trace/beauty/socket.sh b/tools/perf/trace/beauty/socket.sh index 6094e2411fa5..7f1c9f0097c1 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" |