perf trace beauty: Reorganize 'struct sockaddr *' beautifier
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 29 Aug 2018 20:11:33 +0000 (17:11 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 30 Aug 2018 18:52:20 +0000 (15:52 -0300)
commitb043cb524d2892be75c78bc348e83863829d50a0
tree2331c1c80f2be040a704207475682b0d3daccb4d
parent6ebb686225a83200b94777cfc651c94f4e0f6f50
perf trace beauty: Reorganize 'struct sockaddr *' beautifier

Use an array to multiplex by sockaddr->sa_family, this way adding new
families gets a bit easier and tidy.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-v3s85ra659tc40g1s1xaqoun@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/trace/beauty/sockaddr.c