kernel_optimize_test/tools/perf/trace/beauty
Arnaldo Carvalho de Melo 4e5c01a7c7 perf trace: Support MAP_FIXED_NOREPLACE
Introduced in a4ff8e8620 ("mm: introduce MAP_FIXED_NOREPLACE"), and
now that we have that define in the just syncronized
tools/arch/*/include/uapi/asm/mman.h files, add support for it.

This should really transition to autogeneration of string tables as
done for various other things:

  $ ls /tmp/build/perf/trace/beauty/generated/*.c
  arch_errno_name_array.c kcmp_type_array.c madvise_behavior_array.c
  pkey_alloc_access_rights_array.c prctl_option_array.c
  $ head /tmp/build/perf/trace/beauty/generated/madvise_behavior_array.c
  static const char *madvise_advices[] = {
	[0] = "NORMAL",
	[1] = "RANDOM",
	[2] = "SEQUENTIAL",
	[3] = "WILLNEED",
	[4] = "DONTNEED",
	[8] = "FREE",
	[9] = "REMOVE",
	[10] = "DONTFORK",
	[11] = "DOFORK",
  $

Till then, add support for this the old way.

Also it has to be ifdef'ed, because arches like mips still don't define
it. The proper solution will be to have per-arch tables for these
values to support cross-analysis.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-td9t5vhjltqnlzaurkkgq8cn@git.kernel.org
Signef-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-04-18 15:34:52 -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 ioctl: Beautify DRM ioctl cmds 2017-08-01 13:02:05 -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 kcmp: Beautify arguments 2017-10-31 16:17:04 -03:00
kcmp.c perf trace beauty kcmp: Beautify arguments 2017-10-31 16:17:04 -03:00
kvm_ioctl.sh perf trace beautify ioctl: Beautify KVM ioctl's 'cmd' arg 2017-08-01 13:02:52 -03:00
madvise_behavior.sh perf trace beauty madvise: Generate 'behavior' string table from kernel headers 2017-09-21 13:12:59 -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 beautify ioctl: Beautify perf ioctl's 'cmd' arg 2017-08-01 13:33:50 -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: Beautify pkey_{alloc,free,mprotect} arguments 2017-08-28 16:44:47 -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: Generate 'option' string table from kernel headers 2017-10-27 09:10:10 -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 beautify ioctl: Beautify sound ioctl's 'cmd' arg 2017-08-01 13:02:40 -03:00
sndrv_pcm_ioctl.sh perf trace beautify ioctl: Beautify sound ioctl's 'cmd' arg 2017-08-01 13:02:40 -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 beautify ioctl: Beautify vhost virtio ioctl's 'cmd' arg 2017-08-01 13:32: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