Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1543029
| From | Jiri Olsa <jolsa@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] perf trace: Check if MAP_32BIT is defined (again) |
| Date | 2016-12-15 21:10 +0100 |
| Message-ID | <sOKvL-1MW-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
There might be systems where MAP_32BIT is not defined,
like some some RHEL7 powerpc versions.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Kyle McMartin <kyle@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Fixes: 277cf08f3feb ("perf trace beauty mmap: Fix defines for non !x86_64")
Link: http://lkml.kernel.org/n/tip-qp5uczb0ln480l47xbv406cw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/trace/beauty/mmap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/perf/trace/beauty/mmap.c b/tools/perf/trace/beauty/mmap.c
index fd710ab33684..af1cfde6b97b 100644
--- a/tools/perf/trace/beauty/mmap.c
+++ b/tools/perf/trace/beauty/mmap.c
@@ -42,7 +42,9 @@ static size_t syscall_arg__scnprintf_mmap_flags(char *bf, size_t size,
P_MMAP_FLAG(SHARED);
P_MMAP_FLAG(PRIVATE);
+#ifdef MAP_32BIT
P_MMAP_FLAG(32BIT);
+#endif
P_MMAP_FLAG(ANONYMOUS);
P_MMAP_FLAG(DENYWRITE);
P_MMAP_FLAG(EXECUTABLE);
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] perf trace: Check if MAP_32BIT is defined (again) Jiri Olsa <jolsa@kernel.org> - 2016-12-15 21:10 +0100
Re: [PATCH] perf trace: Check if MAP_32BIT is defined (again) Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-12-16 15:10 +0100
Re: [PATCH] perf trace: Check if MAP_32BIT is defined (again) Jiri Olsa <jolsa@redhat.com> - 2016-12-16 15:20 +0100
[tip:perf/urgent] perf trace: Check if MAP_32BIT is defined (again) tip-bot for Jiri Olsa <tipbot@zytor.com> - 2016-12-20 20:30 +0100
csiph-web