strace/userfaultfd.c
Dmitry V. Levin a6ebdb149e Implement userfaultfd syscall decoding
* userfaultfd.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* xlat/uffd_flags.in: New file.
* linux/dummy.h (userfaultfd): Remove.
* tests/userfaultfd.c: New file.
* tests/userfaultfd.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add userfaultfd.
(TESTS): Add userfaultfd.test.
* tests/.gitignore: Add userfaultfd.
2015-11-17 00:40:22 +00:00

12 lines
179 B
C

#include "defs.h"
#include <fcntl.h>
#include "xlat/uffd_flags.h"
SYS_FUNC(userfaultfd)
{
printflags(uffd_flags, tcp->u_arg[0], "UFFD_???");
return RVAL_DECODED | RVAL_FD;
}