Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pkeys.c 413B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2016-2018 The strace developers.
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: LGPL-2.1-or-later
  6. */
  7. #include "defs.h"
  8. #include "xlat/pkey_access.h"
  9. SYS_FUNC(pkey_alloc)
  10. {
  11. tprintf("%#" PRI_klx ", ", tcp->u_arg[0]);
  12. printflags64(pkey_access, tcp->u_arg[1], "PKEY_???");
  13. return RVAL_DECODED;
  14. }
  15. SYS_FUNC(pkey_free)
  16. {
  17. tprintf("%d", (int) tcp->u_arg[0]);
  18. return RVAL_DECODED;
  19. }