https://bugs.kde.org/show_bug.cgi?id=501365

--- Comment #6 from Mark Wielaard <m...@klomp.org> ---
(In reply to mcermak from comment #5)
> Created attachment 179492 [details]
> possible patch
> 
> Hello guys, thank you for all the comments.  I've found existing wrapper for
> sys_epoll_create that seems to be close to this new sys_userfaultfd, and
> modelled the new wrapper after it.  Does the new patch look fine?

Yes, that looks good. Thanks.

You are only hooking this up for amd64-linux, but __NR_userfaultfd is defined
for all linux arches in:
include/vki/vki-scnums-amd64-linux.h
include/vki/vki-scnums-arm-linux.h
include/vki/vki-scnums-arm64-linux.h
include/vki/vki-scnums-mips32-linux.h
include/vki/vki-scnums-mips64-linux.h
include/vki/vki-scnums-nanomips-linux.h
include/vki/vki-scnums-ppc32-linux.h
include/vki/vki-scnums-ppc64-linux.h
include/vki/vki-scnums-riscv64-linux.h
include/vki/vki-scnums-x86-linux.h

So you really can/should hook this up also in:
coregrind/m_syswrap/syswrap-arm-linux.c
coregrind/m_syswrap/syswrap-arm64-linux.c
coregrind/m_syswrap/syswrap-mips32-linux.c
coregrind/m_syswrap/syswrap-mips64-linux.c
coregrind/m_syswrap/syswrap-nanomips-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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to