strace/memfd_create.c
Dmitry V. Levin 95b84ea641 Implement memfd_create syscall decoding
* memfd_create.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* linux/dummy.h (sys_memfd_create): Remove.
* pathtrace.c (pathtrace_match): Add SEN_memfd_create.
* xlat/memfd_create_flags.in: New file.
* tests/memfd_create.c: New file.
* tests/memfd_create.expected: Likewise.
* tests/memfd_create.test: New test.
* tests/Makefile.am: (check_PROGRAMS): Add memfd_create.
(TESTS): Add memfd_create.test.
(EXTRA_DIST): Add memfd_create.expected.
* tests/.gitignore: Add memfd_create.
2015-07-29 09:18:26 +00:00

13 lines
227 B
C

#include "defs.h"
#include "xlat/memfd_create_flags.h"
SYS_FUNC(memfd_create)
{
printstr(tcp, tcp->u_arg[0], -1);
tprints(", ");
printflags(memfd_create_flags, tcp->u_arg[1], "MFD_???");
return RVAL_DECODED | RVAL_FD;
}