• Arnaldo Carvalho de Melo's avatar
    perf beauty socket: Add generator for socket level (SOL_*) string table · ecf0a35b
    Arnaldo Carvalho de Melo authored
      $ tools/perf/trace/beauty/socket.sh
      static const char *socket_ipproto[] = {
      	[0] = "IP",
      	[1] = "ICMP",
      <SNIP>
      	[255] = "RAW",
      	[262] = "MPTCP",
      };
    
      static const char *socket_level[] = {
      	[0] = "IP",
      	[6] = "TCP",
      	[17] = "UDP",
      	[41] = "IPV6",
      	[58] = "ICMPV6",
      	[132] = "SCTP",
      	[136] = "UDPLITE",
      	[255] = "RAW",
      	[256] = "IPX",
      	[257] = "AX25",
      	[258] = "ATALK",
      	[259] = "NETROM",
      	[260] = "ROSE",
      	[261] = "DECNET",
      	[262] = "X25",
      	[263] = "PACKET",
      	[264] = "ATM",
      	[265] = "AAL",
      	[266] = "IRDA",
      	[267] = "NETBEUI",
      	[268] = "LLC",
      	[269] = "DCCP",
      	[270] = "NETLINK",
      	[271] = "TIPC",
      	[272] = "RXRPC",
      	[273] = "PPPOL2TP",
      	[274] = "BLUETOOTH",
      	[275] = "PNPIPE",
      	[276] = "RDS",
      	[277] = "IUCV",
      	[278] = "CAIF",
      	[279] = "ALG",
      	[280] = "NFC",
      	[281] = "KCM",
      	[282] = "TLS",
      	[283] = "XDP",
      	[284] = "MPTCP",
      	[285] = "MCTP",
      };
      $
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    ecf0a35b
beauty.h 10.1 KB