linux/tools/perf/trace/beauty
Arnaldo Carvalho de Melo 9849eec3a4 perf beauty: Add a generator for IPPROTO_ socket's protocol constants
It'll use tools/include copy of linux/in.h to generate a table to be
used by tools, initially by the 'socket' and 'socketpair' beautifiers in
'perf trace', but that could also be used to translate from a string
constant to the integer value to be used in a eBPF or tracefs tracepoint
filter.

When used without any args it produces:

  $ tools/perf/trace/beauty/socket_ipproto.sh
  static const char *socket_ipproto[] = {
	[0] = "IP",
	[103] = "PIM",
	[108] = "COMP",
	[12] = "PUP",
	[132] = "SCTP",
	[136] = "UDPLITE",
	[137] = "MPLS",
	[17] = "UDP",
	[1] = "ICMP",
	[22] = "IDP",
	[255] = "RAW",
	[29] = "TP",
	[2] = "IGMP",
	[33] = "DCCP",
	[41] = "IPV6",
	[46] = "RSVP",
	[47] = "GRE",
	[4] = "IPIP",
	[50] = "ESP",
	[51] = "AH",
	[6] = "TCP",
	[8] = "EGP",
	[92] = "MTP",
	[94] = "BEETPH",
	[98] = "ENCAP",
  };
  $

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-v9rafqh3qn6b9kp9vfvj9f8s@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-07-31 10:52:41 -03:00
..
arch_errno_names.c perf util: Introduce architecture specific errno/name mapping 2018-01-23 09:51:37 -03:00
arch_errno_names.sh perf util: Introduce architecture specific errno/name mapping 2018-01-23 09:51:37 -03:00
beauty.h perf trace beauty flock: Move to separate object file 2018-01-25 06:37:31 -03:00
Build perf trace beauty flock: Move to separate object file 2018-01-25 06:37:31 -03:00
clone.c perf trace beauty clone: Suppress unused args according to 'flags' arg 2017-07-20 11:03:10 -03:00
drm_ioctl.sh perf trace beauty: Default header_dir to cwd to work without parms 2018-07-31 09:56:46 -03:00
eventfd.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fcntl.c perf trace beauty fcntl: Beautify the 'arg' for DUPFD 2017-07-18 23:14:26 -03:00
flock.c perf trace beauty flock: Move to separate object file 2018-01-25 06:37:31 -03:00
futex_op.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
futex_val3.c perf trace beauty futex: Beautify FUTEX_BITSET_MATCH_ANY 2018-01-25 06:37:30 -03:00
ioctl.c perf trace beautify ioctl: Beautify perf ioctl's 'cmd' arg 2017-08-01 13:33:50 -03:00
kcmp_type.sh perf trace beauty: Default header_dir to cwd to work without parms 2018-07-31 09:56:46 -03:00
kcmp.c perf trace beauty kcmp: Beautify arguments 2017-10-31 16:17:04 -03:00
kvm_ioctl.sh perf trace beauty: Default header_dir to cwd to work without parms 2018-07-31 09:56:46 -03:00
madvise_behavior.sh perf trace beauty: Default header_dir to cwd to work without parms 2018-07-31 09:56:46 -03:00
mmap.c perf trace: Support MAP_FIXED_NOREPLACE 2018-04-18 15:34:52 -03:00
mode_t.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
msg_flags.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
open_flags.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
perf_event_open.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
perf_ioctl.sh perf trace beauty: Default header_dir to cwd to work without parms 2018-07-31 09:56:46 -03:00
pid.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pkey_alloc_access_rights.sh perf trace beauty: Default header_dir to cwd to work without parms 2018-07-31 09:56:46 -03:00
pkey_alloc.c perf trace beauty: Beautify pkey_{alloc,free,mprotect} arguments 2017-08-28 16:44:47 -03:00
prctl_option.sh perf trace beauty prctl: Default header_dir to cwd to work without parms 2018-06-01 16:13:06 -03:00
prctl.c perf trace beauty prctl: Generate 'option' string table from kernel headers 2017-10-27 09:10:10 -03:00
sched_policy.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
seccomp.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
signum.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sndrv_ctl_ioctl.sh perf trace beauty: Default header_dir to cwd to work without parms 2018-07-31 09:56:46 -03:00
sndrv_pcm_ioctl.sh perf trace beauty: Default header_dir to cwd to work without parms 2018-07-31 09:56:46 -03:00
socket_ipproto.sh perf beauty: Add a generator for IPPROTO_ socket's protocol constants 2018-07-31 10:52:41 -03:00
socket_type.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
statx.c perf trace: Beautify statx syscall 'flag' and 'mask' arguments 2017-03-31 14:42:31 -03:00
vhost_virtio_ioctl.sh perf trace beauty: Default header_dir to cwd to work without parms 2018-07-31 09:56:46 -03:00
waitid_options.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00