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-2021 The strace developers.
7 * All rights reserved.
8 *
9 * SPDX-License-Identifier: LGPL-2.1-or-later
10 */
11
12 #include "defs.h"
13 #include "kernel_fcntl.h"
14 #include "xlat/delete_module_flags.h"
15
16 SYS_FUNC(delete_module)
17 {
18 /* name */
19 printstr(tcp, tcp->u_arg[0]);
20 tprint_arg_next();
21
22 /* flags */
23 printflags(delete_module_flags, tcp->u_arg[1], "O_???");
24
25 return RVAL_DECODED;
26 }
27
28 SYS_FUNC(init_module)
29 {
30 /* module_image */
31 printaddr(tcp->u_arg[0]);
32 tprint_arg_next();
33
34 /* len */
35 PRINT_VAL_U(tcp->u_arg[1]);
36 tprint_arg_next();
37
38 /* param_values */
39 printstr(tcp, tcp->u_arg[2]);
40
41 return RVAL_DECODED;
42 }
43
44 #include "xlat/module_init_flags.h"
45
46 SYS_FUNC(finit_module)
47 {
48 /* fd */
49 printfd(tcp, tcp->u_arg[0]);
50 tprint_arg_next();
51
52 /* param_values */
53 printstr(tcp, tcp->u_arg[1]);
54 tprint_arg_next();
55
56 /* flags */
57 printflags(module_init_flags, tcp->u_arg[2], "MODULE_INIT_???");
58
59 return RVAL_DECODED;
60 }