Arnaldo Carvalho de Melo
492e05b065
tools: Update asm-generic/mman-common.h copy from the kernel
...
To get the defines introduced in the commit aafd4562df ("mm: arch:
consolidate mmap hugetlb size encodings"), that doesn't brings anything
interesting for tools/, but also the ones from d2cd9ede6e ("mm,fork:
introduce MADV_WIPEONFORK"), which does, and ends up triggering an auto-update
to the tools/perf/trace/beauty/generated/madvise_behavior_array.c file,
supporting the newly introduced 'behavior' values.
This silences this perf build warning:
Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/mman-common.h' differs from latest version at 'include/uapi/asm-generic/mman-common.h'
Testing it:
# cat madvise.c
#include <sys/mman.h>
#include <stdlib.h>
#ifndef MADV_WIPEONFORK
#define MADV_WIPEONFORK 18
#endif
#ifndef MADV_KEEPONFORK
#define MADV_KEEPONFORK 19
#endif
int main(void)
{
void *ptr = mmap(NULL, 4096, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
madvise(ptr, 4096, MADV_WIPEONFORK);
madvise(ptr, 4096, MADV_KEEPONFORK);
return 0;
}
[root@jouet c]# perf trace -e mmap,madvise ./madvise
0.000 ( 0.013 ms): madvise/11732 mmap(len: 8192, prot: READ|WRITE, flags: PRIVATE|ANONYMOUS ) = 0x7fba6e015000
0.047 ( 0.004 ms): madvise/11732 mmap(len: 160164, prot: READ, flags: PRIVATE, fd: 3 ) = 0x7fba6dfed000
0.084 ( 0.009 ms): madvise/11732 mmap(len: 4000096, prot: EXEC|READ, flags: PRIVATE|DENYWRITE, fd: 3 ) = 0x7fba6da20000
0.109 ( 0.006 ms): madvise/11732 mmap(addr: 0x7fba6dde7000, len: 24576, prot: READ|WRITE, flags: PRIVATE|DENYWRITE|FIXED, fd: 3, off: 1863680) = 0x7fba6dde7000
0.125 ( 0.004 ms): madvise/11732 mmap(addr: 0x7fba6dded000, len: 14688, prot: READ|WRITE, flags: PRIVATE|ANONYMOUS|FIXED) = 0x7fba6dded000
0.150 ( 0.006 ms): madvise/11732 mmap(len: 12288, prot: READ|WRITE, flags: PRIVATE|ANONYMOUS ) = 0x7fba6dfea000
0.288 ( 0.003 ms): madvise/11732 mmap(len: 4096, flags: PRIVATE|ANONYMOUS ) = 0x7fba6e014000
0.292 ( 0.002 ms): madvise/11732 madvise(start: 0x7fba6e014000, len_in: 4096, behavior: MADV_WIPEONFORK) = 0
0.295 ( 0.001 ms): madvise/11732 madvise(start: 0x7fba6e014000, len_in: 4096, behavior: MADV_KEEPONFORK) = 0
# uname -a
Linux jouet 4.13.0+ #2 SMP Mon Sep 18 17:22:46 -03 2017 x86_64 x86_64 x86_64 GNU/Linux
#
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-yev9rexu02cl7cjeozzmrl9t@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-09-21 13:12:59 -03:00
arch
dma-mapping updates for 4.14:
2017-09-12 13:30:06 -07:00
block
Merge branch 'for-4.14/block-postmerge' of git://git.kernel.dk/linux-block
2017-09-09 12:49:01 -07:00
certs
modsign: add markers to endif-statements in certs/Makefile
2017-07-14 11:01:37 +10:00
crypto
crypto: af_alg - get_page upon reassignment to TX SGL
2017-08-22 15:03:27 +08:00
Documentation
for-f2fs-4.14
2017-09-12 20:05:58 -07:00
drivers
The highlights include:
2017-09-12 20:03:53 -07:00
firmware
firmware/Makefile: force recompilation if makefile changes
2017-05-08 17:15:10 -07:00
fs
for-f2fs-4.14
2017-09-12 20:05:58 -07:00
include
for-f2fs-4.14
2017-09-12 20:05:58 -07:00
init
init/main.c: extract early boot entropy from the passed cmdline
2017-09-08 18:26:50 -07:00
ipc
ipc: optimize semget/shmget/msgget for lots of keys
2017-09-08 18:26:51 -07:00
kernel
selinux/stable-4.14 PR 20170831
2017-09-12 13:21:00 -07:00
lib
libnvdimm for 4.14
2017-09-11 13:10:57 -07:00
mm
mem/memcg: cache rightmost node
2017-09-08 18:26:49 -07:00
net
The highlights include:
2017-09-12 20:03:53 -07:00
samples
media updates for v4.14-rc1
2017-09-07 12:53:14 -07:00
scripts
selinux/stable-4.14 PR 20170831
2017-09-12 13:21:00 -07:00
security
selinux/stable-4.14 PR 20170831
2017-09-12 13:21:00 -07:00
sound
linux/kernel.h: move DIV_ROUND_DOWN_ULL() macro
2017-09-08 18:26:47 -07:00
tools
tools: Update asm-generic/mman-common.h copy from the kernel
2017-09-21 13:12:59 -03:00
usr
ramfs: clarify help text that compression applies to ramfs as well as legacy ramdisk.
2017-07-06 16:24:30 -07:00
virt
First batch of KVM changes for 4.14
2017-09-08 15:18:36 -07:00
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitattributes: set git diff driver for C source code files
2016-10-07 18:46:30 -07:00
.gitignore
kbuild: Add support to generate LLVM assembly files
2017-04-25 08:13:52 +09:00
.mailmap
power supply and reset changes for the v4.12 series (part 2)
2017-05-12 12:02:21 -07:00
COPYING
CREDITS
selinux/stable-4.14 PR 20170831
2017-09-12 13:21:00 -07:00
Kbuild
kbuild: Consolidate header generation from ASM offset information
2017-04-13 05:43:37 +09:00
Kconfig
MAINTAINERS
dma-mapping updates for 4.14:
2017-09-12 13:30:06 -07:00
Makefile
Merge branch 'docs-next' of git://git.lwn.net/linux
2017-09-03 21:07:29 -07:00
README
README: add a new README file, pointing to the Documentation/
2016-10-24 08:12:35 -02:00