summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2022-12-11 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2022-12-11 08:00:00 +0000
commita108d9b19b70a6186d1cc21228f1ac151058a33e (patch)
tree2887dc32e4d8aca49713b80e75d3dc24b7da993c
parenta04d9faa080c35558a249ab42e53e4a4038fd844 (diff)
downloadstrace-a108d9b19b70a6186d1cc21228f1ac151058a33e.tar.gz
xlat: update MADV_* constants
* src/xlat/madvise_cmds.in (MADV_COLLAPSE): New constant introduced by Linux kernel commit v6.1-rc1~21^2~577. * NEWS: Mention this.
-rw-r--r--NEWS1
-rw-r--r--src/xlat/madvise_cmds.in6
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index cb511daf4..19470fcd9 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ Noteworthy changes in release ?.? (????-??-??)
* Improvements
* Enhanced decoding of terminal ioctl commands.
+ * Updated the list of MADV_* constants.
* Updated lists of ioctl commands from Linux 6.1.
* Bug fixes
diff --git a/src/xlat/madvise_cmds.in b/src/xlat/madvise_cmds.in
index ddc536c32..8a1f9d8e2 100644
--- a/src/xlat/madvise_cmds.in
+++ b/src/xlat/madvise_cmds.in
@@ -80,6 +80,12 @@ MADV_POPULATE_WRITE 23
MADV_DONTNEED_LOCKED 24
+#if defined __hppa__
+MADV_COLLAPSE 73
+#else
+MADV_COLLAPSE 25
+#endif
+
MADV_HWPOISON 100
MADV_SOFT_OFFLINE 101