Commit bcf66917 authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Linus Torvalds

mm, tracing: refresh __def_vmaflag_names

Get list of VMA flags up-to-date and sort it to match VM_* definition
order.

[vbabka@suse.cz: add a note above vmaflag definitions to update the names when changing]
Signed-off-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: default avatarVlastimil Babka <vbabka@suse.cz>
Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 39a1aa8e
...@@ -143,6 +143,7 @@ extern unsigned int kobjsize(const void *objp); ...@@ -143,6 +143,7 @@ extern unsigned int kobjsize(const void *objp);
/* /*
* vm_flags in vm_area_struct, see mm_types.h. * vm_flags in vm_area_struct, see mm_types.h.
* When changing, update also include/trace/events/mmflags.h
*/ */
#define VM_NONE 0x00000000 #define VM_NONE 0x00000000
......
...@@ -111,15 +111,21 @@ IF_HAVE_PG_IDLE(PG_idle, "idle" ) ...@@ -111,15 +111,21 @@ IF_HAVE_PG_IDLE(PG_idle, "idle" )
) : "none" ) : "none"
#if defined(CONFIG_X86) #if defined(CONFIG_X86)
#define __VM_ARCH_SPECIFIC {VM_PAT, "pat" } #define __VM_ARCH_SPECIFIC_1 {VM_PAT, "pat" }
#elif defined(CONFIG_PPC) #elif defined(CONFIG_PPC)
#define __VM_ARCH_SPECIFIC {VM_SAO, "sao" } #define __VM_ARCH_SPECIFIC_1 {VM_SAO, "sao" }
#elif defined(CONFIG_PARISC) || defined(CONFIG_METAG) || defined(CONFIG_IA64) #elif defined(CONFIG_PARISC) || defined(CONFIG_METAG) || defined(CONFIG_IA64)
#define __VM_ARCH_SPECIFIC {VM_GROWSUP, "growsup" } #define __VM_ARCH_SPECIFIC_1 {VM_GROWSUP, "growsup" }
#elif !defined(CONFIG_MMU) #elif !defined(CONFIG_MMU)
#define __VM_ARCH_SPECIFIC {VM_MAPPED_COPY,"mappedcopy" } #define __VM_ARCH_SPECIFIC_1 {VM_MAPPED_COPY,"mappedcopy" }
#else #else
#define __VM_ARCH_SPECIFIC {VM_ARCH_1, "arch_1" } #define __VM_ARCH_SPECIFIC_1 {VM_ARCH_1, "arch_1" }
#endif
#if defined(CONFIG_X86)
#define __VM_ARCH_SPECIFIC_2 {VM_MPX, "mpx" }
#else
#define __VM_ARCH_SPECIFIC_2 {VM_ARCH_2, "arch_2" }
#endif #endif
#ifdef CONFIG_MEM_SOFT_DIRTY #ifdef CONFIG_MEM_SOFT_DIRTY
...@@ -138,19 +144,22 @@ IF_HAVE_PG_IDLE(PG_idle, "idle" ) ...@@ -138,19 +144,22 @@ IF_HAVE_PG_IDLE(PG_idle, "idle" )
{VM_MAYEXEC, "mayexec" }, \ {VM_MAYEXEC, "mayexec" }, \
{VM_MAYSHARE, "mayshare" }, \ {VM_MAYSHARE, "mayshare" }, \
{VM_GROWSDOWN, "growsdown" }, \ {VM_GROWSDOWN, "growsdown" }, \
{VM_UFFD_MISSING, "uffd_missing" }, \
{VM_PFNMAP, "pfnmap" }, \ {VM_PFNMAP, "pfnmap" }, \
{VM_DENYWRITE, "denywrite" }, \ {VM_DENYWRITE, "denywrite" }, \
{VM_LOCKONFAULT, "lockonfault" }, \ {VM_UFFD_WP, "uffd_wp" }, \
{VM_LOCKED, "locked" }, \ {VM_LOCKED, "locked" }, \
{VM_IO, "io" }, \ {VM_IO, "io" }, \
{VM_SEQ_READ, "seqread" }, \ {VM_SEQ_READ, "seqread" }, \
{VM_RAND_READ, "randread" }, \ {VM_RAND_READ, "randread" }, \
{VM_DONTCOPY, "dontcopy" }, \ {VM_DONTCOPY, "dontcopy" }, \
{VM_DONTEXPAND, "dontexpand" }, \ {VM_DONTEXPAND, "dontexpand" }, \
{VM_LOCKONFAULT, "lockonfault" }, \
{VM_ACCOUNT, "account" }, \ {VM_ACCOUNT, "account" }, \
{VM_NORESERVE, "noreserve" }, \ {VM_NORESERVE, "noreserve" }, \
{VM_HUGETLB, "hugetlb" }, \ {VM_HUGETLB, "hugetlb" }, \
__VM_ARCH_SPECIFIC , \ __VM_ARCH_SPECIFIC_1 , \
__VM_ARCH_SPECIFIC_2 , \
{VM_DONTDUMP, "dontdump" }, \ {VM_DONTDUMP, "dontdump" }, \
IF_HAVE_VM_SOFTDIRTY(VM_SOFTDIRTY, "softdirty" ) \ IF_HAVE_VM_SOFTDIRTY(VM_SOFTDIRTY, "softdirty" ) \
{VM_MIXEDMAP, "mixedmap" }, \ {VM_MIXEDMAP, "mixedmap" }, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment