perf trace beauty mmap: Fix defines for non !x86_64
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 12 Sep 2016 19:27:32 +0000 (16:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 13 Sep 2016 18:26:29 +0000 (15:26 -0300)
commit277cf08f3febd9d0921f4ff1b46fd5d294fe3942
treee19ba0022264a98fff897a3b4a80af27dad6b5d6
parentf3539c12d8196ce0a1993364d30b3a18908470d1
perf trace beauty mmap: Fix defines for non !x86_64

Several defines have different values in different arches, so we can't
just define it to the x86_64 value, use uapi/linux/mmap.h that was
recently introduced to reliably find those, not using possibly outdated
libc headers.

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>
Cc: Zefan Li <lizefan@huawei.com>
Link: http://lkml.kernel.org/n/tip-4eajp5yp8i2fuw44n7jmcg5t@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/trace/beauty/mmap.c