Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1483178 > unrolled thread

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

Started byWang Nan <wangnan0@huawei.com>
First post2016-09-14 13:00 +0200
Last post2016-09-16 14:50 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] tools include: Fix uapi mman.h for each architecture Wang Nan <wangnan0@huawei.com> - 2016-09-14 13:00 +0200
    [PATCH 1/2] perf trace beauty mmap: Add missing MADV_FREE Wang Nan <wangnan0@huawei.com> - 2016-09-14 13:00 +0200
      [tip:perf/core] perf trace beauty mmap: Add missing MADV_FREE tip-bot for Wang Nan <tipbot@zytor.com> - 2016-09-20 23:50 +0200
    Re: [PATCH 0/2] tools include: Fix uapi mman.h for each architecture Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2016-09-16 14:50 +0200

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

FromWang Nan <wangnan0@huawei.com>
Date2016-09-14 13:00 +0200
Subject[PATCH 0/2] tools include: Fix uapi mman.h for each architecture
Message-ID<shg54-8gk-9@gated-at.bofh.it>
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.

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@huawei.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
-- 
1.8.3.4

[toc] | [next] | [standalone]


#1483181 — [PATCH 1/2] perf trace beauty mmap: Add missing MADV_FREE

FromWang Nan <wangnan0@huawei.com>
Date2016-09-14 13:00 +0200
Subject[PATCH 1/2] perf trace beauty mmap: Add missing MADV_FREE
Message-ID<shg54-8gk-21@gated-at.bofh.it>
In reply to#1483178
tools/perf/trace/beauty/mmap.c forgets to check MADV_FREE.
This patch fixes it.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
---
 tools/perf/trace/beauty/mmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/trace/beauty/mmap.c b/tools/perf/trace/beauty/mmap.c
index 3629b45..fd710ab 100644
--- a/tools/perf/trace/beauty/mmap.c
+++ b/tools/perf/trace/beauty/mmap.c
@@ -101,6 +101,7 @@ static size_t syscall_arg__scnprintf_madvise_behavior(char *bf, size_t size,
 	P_MADV_BHV(SEQUENTIAL);
 	P_MADV_BHV(WILLNEED);
 	P_MADV_BHV(DONTNEED);
+	P_MADV_BHV(FREE);
 	P_MADV_BHV(REMOVE);
 	P_MADV_BHV(DONTFORK);
 	P_MADV_BHV(DOFORK);
-- 
1.8.3.4

[toc] | [prev] | [next] | [standalone]


#1487671 — [tip:perf/core] perf trace beauty mmap: Add missing MADV_FREE

Fromtip-bot for Wang Nan <tipbot@zytor.com>
Date2016-09-20 23:50 +0200
Subject[tip:perf/core] perf trace beauty mmap: Add missing MADV_FREE
Message-ID<sjB5o-8g-33@gated-at.bofh.it>
In reply to#1483181
Commit-ID:  f752e90e9c00da2a1994e2e1b1a04505b46a6a4c
Gitweb:     http://git.kernel.org/tip/f752e90e9c00da2a1994e2e1b1a04505b46a6a4c
Author:     Wang Nan <wangnan0@huawei.com>
AuthorDate: Wed, 14 Sep 2016 10:57:28 +0000
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Mon, 19 Sep 2016 11:25:07 -0300

perf trace beauty mmap: Add missing MADV_FREE

tools/perf/trace/beauty/mmap.c forgets to check MADV_FREE.
This patch fixes it.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1473850649-83389-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/trace/beauty/mmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/trace/beauty/mmap.c b/tools/perf/trace/beauty/mmap.c
index 3629b45..fd710ab 100644
--- a/tools/perf/trace/beauty/mmap.c
+++ b/tools/perf/trace/beauty/mmap.c
@@ -101,6 +101,7 @@ static size_t syscall_arg__scnprintf_madvise_behavior(char *bf, size_t size,
 	P_MADV_BHV(SEQUENTIAL);
 	P_MADV_BHV(WILLNEED);
 	P_MADV_BHV(DONTNEED);
+	P_MADV_BHV(FREE);
 	P_MADV_BHV(REMOVE);
 	P_MADV_BHV(DONTFORK);
 	P_MADV_BHV(DOFORK);

[toc] | [prev] | [next] | [standalone]


#1484968

FromRavi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Date2016-09-16 14:50 +0200
Message-ID<si0KC-4Md-23@gated-at.bofh.it>
In reply to#1483178
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@huawei.com>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web