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.

ipc.c 542B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org>
  3. * Copyright (c) 1999-2018 The strace developers.
  4. * All rights reserved.
  5. *
  6. * SPDX-License-Identifier: LGPL-2.1-or-later
  7. */
  8. #include "defs.h"
  9. #include "xlat/ipccalls.h"
  10. SYS_FUNC(ipc)
  11. {
  12. unsigned int call = tcp->u_arg[0];
  13. unsigned int version = call >> 16;
  14. call &= 0xffff;
  15. if (version)
  16. tprintf("%u<<16|", version);
  17. printxval_u(ipccalls, call, NULL);
  18. unsigned int i;
  19. for (i = 1; i < n_args(tcp); ++i)
  20. tprintf(", %#" PRI_klx, tcp->u_arg[i]);
  21. return RVAL_DECODED;
  22. }