Re: [PATCH 0/2] tools include: Fix uapi mman.h for each architecture

From: Ravi Bangoria
Date: Fri Sep 16 2016 - 08:42:07 EST



On Wednesday 14 September 2016 04:27 PM, Wang Nan wrote:
> Naveen reports a building failure on powerpc because powerpc doesn't
> define MMAP_32BIT. Fix it by ensure all macros required by perf is
> defined.

Fixes: 277cf08f3feb ("perf trace beauty mmap: Fix defines for non !x86_64")

> Wang Nan (2):
> perf trace beauty mmap: Add missing MADV_FREE
> tools include: Add mman macros needed by perf for all arch
>
> tools/arch/alpha/include/uapi/asm/mman.h | 9 +++++++++
> tools/arch/arc/include/uapi/asm/mman.h | 2 ++
> tools/arch/arm/include/uapi/asm/mman.h | 2 ++
> tools/arch/arm64/include/uapi/asm/mman.h | 2 ++
> tools/arch/frv/include/uapi/asm/mman.h | 2 ++
> tools/arch/h8300/include/uapi/asm/mman.h | 2 ++
> tools/arch/hexagon/include/uapi/asm/mman.h | 2 ++
> tools/arch/ia64/include/uapi/asm/mman.h | 2 ++
> tools/arch/m32r/include/uapi/asm/mman.h | 2 ++
> tools/arch/microblaze/include/uapi/asm/mman.h | 2 ++
> tools/arch/mips/include/uapi/asm/mman.h | 7 +++++++
> tools/arch/mn10300/include/uapi/asm/mman.h | 2 ++
> tools/arch/parisc/include/uapi/asm/mman.h | 9 +++++++++
> tools/arch/powerpc/include/uapi/asm/mman.h | 2 ++
> tools/arch/s390/include/uapi/asm/mman.h | 2 ++
> tools/arch/score/include/uapi/asm/mman.h | 2 ++
> tools/arch/sh/include/uapi/asm/mman.h | 2 ++
> tools/arch/sparc/include/uapi/asm/mman.h | 2 ++
> tools/arch/tile/include/uapi/asm/mman.h | 2 ++
> tools/arch/xtensa/include/uapi/asm/mman.h | 9 +++++++++
> tools/perf/trace/beauty/mmap.c | 1 +
> 21 files changed, 67 insertions(+)
>
> Signed-off-by: Wang Nan <wangnan0@xxxxxxxxxx>
> Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> Cc: Naveen N. Rao <naveen.n.rao@xxxxxxxxxxxxxxxxxx>