diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-11-08 15:29:10 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-11-12 10:40:34 -0300 |
commit | 0826b7fd0a0188d9f8388ff031dd0b3e3beb77a6 (patch) | |
tree | 2757dab506fecdf5e960b96540bd9eff336ec53f /tools/perf/util/c++/clang-test.cpp | |
parent | f1c1e45e9cca67b970a4941608767bced2e68695 (diff) | |
download | linux-stable-0826b7fd0a0188d9f8388ff031dd0b3e3beb77a6.tar.gz linux-stable-0826b7fd0a0188d9f8388ff031dd0b3e3beb77a6.tar.bz2 linux-stable-0826b7fd0a0188d9f8388ff031dd0b3e3beb77a6.zip |
perf trace: Beautify the 'level' argument of setsockopt
# perf trace -e setsockopt
0.000 ( 0.019 ms): systemd-resolv/1121 setsockopt(fd: 22, level: IP, optname: 50, optval: 0x7ffee2c0c134, optlen: 4) = 0
0.022 ( 0.003 ms): systemd-resolv/1121 setsockopt(fd: 22, level: IP, optname: 11, optval: 0x7ffee2c0c114, optlen: 4) = 0
0.027 ( 0.003 ms): systemd-resolv/1121 setsockopt(fd: 22, level: IP, optname: 8, optval: 0x7ffee2c0c134, optlen: 4) = 0
0.032 ( 0.002 ms): systemd-resolv/1121 setsockopt(fd: 22, level: IP, optname: 10, optval: 0x7ffee2c0c134, optlen: 4) = 0
0.036 ( 0.002 ms): systemd-resolv/1121 setsockopt(fd: 22, level: IP, optname: 25, optval: 0x7ffee2c0c114, optlen: 4) = 0
0.043 ( 0.003 ms): systemd-resolv/1121 setsockopt(fd: 22, level: 1, optname: 62, optval: 0x7ffee2c0c0fc, optlen: 4) = 0
0.055 ( 0.003 ms): systemd-resolv/1121 setsockopt(fd: 22, level: 1, optname: 25)
^C#
So the simple straight STRARRAY method is not enough as SOL_SOCKET is
'1' in most architectures but some use 0xffff (alpha, mips, parisc and
sparc), so a followup patch will create a specialized scnprintf to cover
that.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions