public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Joseph Myers <jsm28@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] Define MADV_COLLAPSE from Linux 6.1
Date: Thu, 22 Dec 2022 15:13:18 +0000 (GMT) [thread overview]
Message-ID: <20221222151318.C97F53858D1E@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=81a94a2ae34bac9c3d907bbe0468ba56914accb0
commit 81a94a2ae34bac9c3d907bbe0468ba56914accb0
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Dec 22 15:12:52 2022 +0000
Define MADV_COLLAPSE from Linux 6.1
Add the MADV_COLLAPSE constant from Linux 6.1 to bits/mman-linux.h and
the hppa bits/mman.h.
Tested for x86_64.
Diff:
---
sysdeps/unix/sysv/linux/bits/mman-linux.h | 1 +
sysdeps/unix/sysv/linux/hppa/bits/mman.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h
index 1fb7f888aa..c3818ce356 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h
@@ -91,6 +91,7 @@
writable. */
# define MADV_DONTNEED_LOCKED 24 /* Like MADV_DONTNEED, but drop
locked pages too. */
+# define MADV_COLLAPSE 25 /* Synchronous hugepage collapse. */
# define MADV_HWPOISON 100 /* Poison a page for testing. */
#endif
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/mman.h b/sysdeps/unix/sysv/linux/hppa/bits/mman.h
index acaa1cc3e7..1d895a5234 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/mman.h
@@ -79,4 +79,6 @@
# define MADV_WIPEONFORK 71 /* Zero memory on fork, child only. */
# undef MADV_KEEPONFORK
# define MADV_KEEPONFORK 72 /* Undo MADV_WIPEONFORK. */
+# undef MADV_COLLAPSE
+# define MADV_COLLAPSE 73 /* Synchronous hugepage collapse. */
#endif
reply other threads:[~2022-12-22 15:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221222151318.C97F53858D1E@sourceware.org \
--to=jsm28@sourceware.org \
--cc=glibc-cvs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).