]> git.baikalelectronics.ru Git - kernel.git/commit
perf beauty mmap_flags: Check if the arch has a mmap.h file
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Nov 2018 15:19:15 +0000 (12:19 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Dec 2018 17:55:14 +0000 (14:55 -0300)
commitf36dd286c5f2d9ecde597d65aa2d63dcd29ef7c8
tree2154b7cf8b8fe707f9ac84bed931af5be150d754
parentbd2f73b9d5fe7a93379cf1af4109dfd5db4350e1
perf beauty mmap_flags: Check if the arch has a mmap.h file

If not, then just use what is in asm-generic. This fixes the build for
my sh4, m68k and riscv64 perf test build containers that were failing
due to b2b508653d12 ("perf beauty: Add a generator for MAP_ mmap's flag
constants"), that were not covered in the cset introducing those
tools/arch/*/include/uapi/asm/mman.h files.

  230aab24ea90 ("tools include: Add uapi mman.h for each architecture")

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>
Fixes: b2b508653d12 ("perf beauty: Add a generator for MAP_ mmap's flag constants")
Link: https://lkml.kernel.org/n/tip-rpy9t2e0wxpnum1yvxhreafe@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.perf
tools/perf/trace/beauty/mmap_flags.sh