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.

bjm.c 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
  3. * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
  4. * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
  5. * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
  6. * Copyright (c) 1999-2018 The strace developers.
  7. * All rights reserved.
  8. *
  9. * SPDX-License-Identifier: LGPL-2.1-or-later
  10. */
  11. #include "defs.h"
  12. #include <fcntl.h>
  13. #include "xlat/delete_module_flags.h"
  14. SYS_FUNC(delete_module)
  15. {
  16. printstr(tcp, tcp->u_arg[0]);
  17. tprints(", ");
  18. printflags(delete_module_flags, tcp->u_arg[1], "O_???");
  19. return RVAL_DECODED;
  20. }
  21. SYS_FUNC(init_module)
  22. {
  23. printaddr(tcp->u_arg[0]);
  24. tprintf(", %" PRI_klu ", ", tcp->u_arg[1]);
  25. printstr(tcp, tcp->u_arg[2]);
  26. return RVAL_DECODED;
  27. }
  28. #include "xlat/module_init_flags.h"
  29. SYS_FUNC(finit_module)
  30. {
  31. /* file descriptor */
  32. printfd(tcp, tcp->u_arg[0]);
  33. tprints(", ");
  34. /* param_values */
  35. printstr(tcp, tcp->u_arg[1]);
  36. tprints(", ");
  37. /* flags */
  38. printflags(module_init_flags, tcp->u_arg[2], "MODULE_INIT_???");
  39. return RVAL_DECODED;
  40. }