From: Dmitry V. Levin Date: Thu, 14 Mar 2013 18:55:26 +0000 (+0000) Subject: Update MADV_* constants X-Git-Tag: v4.8~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ec134b07ad6154edf85e6452b894ae9c1ce1ebb;p=strace Update MADV_* constants * mem.c (madvise_cmds): Add more MADV_* constants from asm-generic/mman-common.h Reported-by: Robin Hack --- diff --git a/mem.c b/mem.c index 3bd41b46..b767f1bd 100644 --- a/mem.c +++ b/mem.c @@ -399,6 +399,39 @@ static const struct xlat madvise_cmds[] = { #endif #ifdef MADV_DONTNEED { MADV_DONTNEED, "MADV_DONTNEED" }, +#endif +#ifdef MADV_REMOVE + { MADV_REMOVE, "MADV_REMOVE" }, +#endif +#ifdef MADV_DONTFORK + { MADV_DONTFORK, "MADV_DONTFORK" }, +#endif +#ifdef MADV_DOFORK + { MADV_DOFORK, "MADV_DOFORK" }, +#endif +#ifdef MADV_HWPOISON + { MADV_HWPOISON, "MADV_HWPOISON" }, +#endif +#ifdef MADV_SOFT_OFFLINE + { MADV_SOFT_OFFLINE, "MADV_SOFT_OFFLINE" }, +#endif +#ifdef MADV_MERGEABLE + { MADV_MERGEABLE, "MADV_MERGEABLE" }, +#endif +#ifdef MADV_UNMERGEABLE + { MADV_UNMERGEABLE, "MADV_UNMERGEABLE" }, +#endif +#ifdef MADV_HUGEPAGE + { MADV_HUGEPAGE, "MADV_HUGEPAGE" }, +#endif +#ifdef MADV_NOHUGEPAGE + { MADV_NOHUGEPAGE, "MADV_NOHUGEPAGE" }, +#endif +#ifdef MADV_DONTDUMP + { MADV_DONTDUMP, "MADV_DONTDUMP" }, +#endif +#ifdef MADV_DODUMP + { MADV_DODUMP, "MADV_DODUMP" }, #endif { 0, NULL }, };