Commit f2935f3e authored by David Ahern's avatar David Ahern Committed by Arnaldo Carvalho de Melo

perf trace: Handle missing HUGEPAGE defines

Needed for compile on Fedora 12 which goes back to the 2.6.32 kernel.
Might be needed for RHEL6. I use F12 to compile static binaries for
Wind River Linux 4.3.
Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/n/tip-nd0d7rbajgm8k6tah3xv34v1@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent bdc89661
...@@ -71,7 +71,9 @@ static size_t syscall_arg__scnprintf_mmap_flags(char *bf, size_t size, unsigned ...@@ -71,7 +71,9 @@ static size_t syscall_arg__scnprintf_mmap_flags(char *bf, size_t size, unsigned
P_MMAP_FLAG(FILE); P_MMAP_FLAG(FILE);
P_MMAP_FLAG(FIXED); P_MMAP_FLAG(FIXED);
P_MMAP_FLAG(GROWSDOWN); P_MMAP_FLAG(GROWSDOWN);
#ifdef MAP_HUGETLB
P_MMAP_FLAG(HUGETLB); P_MMAP_FLAG(HUGETLB);
#endif
P_MMAP_FLAG(LOCKED); P_MMAP_FLAG(LOCKED);
P_MMAP_FLAG(NONBLOCK); P_MMAP_FLAG(NONBLOCK);
P_MMAP_FLAG(NORESERVE); P_MMAP_FLAG(NORESERVE);
...@@ -110,8 +112,12 @@ static size_t syscall_arg__scnprintf_madvise_behavior(char *bf, size_t size, uns ...@@ -110,8 +112,12 @@ static size_t syscall_arg__scnprintf_madvise_behavior(char *bf, size_t size, uns
#endif #endif
P_MADV_BHV(MERGEABLE); P_MADV_BHV(MERGEABLE);
P_MADV_BHV(UNMERGEABLE); P_MADV_BHV(UNMERGEABLE);
#ifdef MADV_HUGEPAGE
P_MADV_BHV(HUGEPAGE); P_MADV_BHV(HUGEPAGE);
#endif
#ifdef MADV_NOHUGEPAGE
P_MADV_BHV(NOHUGEPAGE); P_MADV_BHV(NOHUGEPAGE);
#endif
#ifdef MADV_DONTDUMP #ifdef MADV_DONTDUMP
P_MADV_BHV(DONTDUMP); P_MADV_BHV(DONTDUMP);
#endif #endif
......
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