• A
    tools headers UAPI: Update tools's copy of mman.h headers · b830f94f
    Arnaldo Carvalho de Melo 提交于
    To pick up the changes from:
    
      8aa3c927 ("mm/mmap: move common defines to mman-common.h")
      22fcea6f ("mm: move MAP_SYNC to asm-generic/mman-common.h")
      0bf5f949 ("mm: fix the MAP_UNINITIALIZED flag")
    
    To address the following perf build warnings:
    
      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'
      diff -u tools/include/uapi/asm-generic/mman-common.h include/uapi/asm-generic/mman-common.h
      Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/mman.h' differs from latest version at 'include/uapi/asm-generic/mman.h'
      diff -u tools/include/uapi/asm-generic/mman.h include/uapi/asm-generic/mman.h
    
    That ends up just moving a bit the auto-generated code->string tables:
    
      $ tools/perf/trace/beauty/mmap_flags.sh > before
      $ cp include/uapi/asm-generic/mman.h tools/include/uapi/asm-generic/mman.h
      $ cp include/uapi/asm-generic/mman-common.h tools/include/uapi/asm-generic/mman-common.h
      $ tools/perf/trace/beauty/mmap_flags.sh > after
      $ diff -u before after
      --- before 2019-07-26 12:45:02.948335904 -0300
      +++ after 2019-07-26 12:48:05.342893539 -0300
      @@ -4,15 +4,15 @@
              [ilog2(0x02) + 1] = "PRIVATE",
              [ilog2(0x10) + 1] = "FIXED",
              [ilog2(0x20) + 1] = "ANONYMOUS",
      +       [ilog2(0x008000) + 1] = "POPULATE",
      +       [ilog2(0x010000) + 1] = "NONBLOCK",
      +       [ilog2(0x020000) + 1] = "STACK",
      +       [ilog2(0x040000) + 1] = "HUGETLB",
      +       [ilog2(0x080000) + 1] = "SYNC",
              [ilog2(0x100000) + 1] = "FIXED_NOREPLACE",
              [ilog2(0x0100) + 1] = "GROWSDOWN",
              [ilog2(0x0800) + 1] = "DENYWRITE",
              [ilog2(0x1000) + 1] = "EXECUTABLE",
              [ilog2(0x2000) + 1] = "LOCKED",
              [ilog2(0x4000) + 1] = "NORESERVE",
      -       [ilog2(0x8000) + 1] = "POPULATE",
      -       [ilog2(0x10000) + 1] = "NONBLOCK",
      -       [ilog2(0x20000) + 1] = "STACK",
      -       [ilog2(0x40000) + 1] = "HUGETLB",
      -       [ilog2(0x80000) + 1] = "SYNC",
       };
      $
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Link: https://lkml.kernel.org/n/tip-fzqvzni9megaurmsp0k4vy27@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    b830f94f
mman.h 424 字节