]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Wrap the remap_file_pages syscall
authorMartin Cermak <mcermak@redhat.com>
Wed, 3 Sep 2025 14:02:26 +0000 (16:02 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 8 Sep 2025 17:13:18 +0000 (19:13 +0200)
commit818e7661ecac5e0fb60f19f28ad64cd3bff6cdd9
tree1826d9a03e45ae02c2a46a715ad0de891e57eee8
parent4cfbb3aaa6db1a4d5ee4c9c5d61ed94315570f8c
Wrap the remap_file_pages syscall

The remap_file_pages() system call is used to create a nonlinear
mapping, that is, a mapping in which the pages of the file are
mapped into a nonsequential order in memory.  It is deprecated
but in some cases it may still be used.  LTP remap_file_pages01
and remap_file_pages02 test-cover it.

Declare a remap_file_pages wrapper in priv_syswrap-linux.h
and hook it for {amd64,arm,arm64,mips64,ppc32,ppc64,riscv64,s390x\
,x86}- linux using LINX_ with PRE handler in syswrap-linux.c

https://bugs.kde.org/show_bug.cgi?id=309554
13 files changed:
NEWS
coregrind/m_syswrap/priv_syswrap-linux.h
coregrind/m_syswrap/syswrap-amd64-linux.c
coregrind/m_syswrap/syswrap-arm-linux.c
coregrind/m_syswrap/syswrap-arm64-linux.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_syswrap/syswrap-mips64-linux.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/m_syswrap/syswrap-ppc64-linux.c
coregrind/m_syswrap/syswrap-riscv64-linux.c
coregrind/m_syswrap/syswrap-s390x-linux.c
coregrind/m_syswrap/syswrap-x86-linux.c
include/vki/vki-scnums-riscv64-linux.h