]> granicus.if.org Git - strace/blob - bjm.c
xlat: add BPF_F_TEST_STATE_FREQ to bpf_prog_flags
[strace] / bjm.c
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
12 #include "defs.h"
13 #include <fcntl.h>
14
15 #include "xlat/delete_module_flags.h"
16
17 SYS_FUNC(delete_module)
18 {
19         printstr(tcp, tcp->u_arg[0]);
20         tprints(", ");
21         printflags(delete_module_flags, tcp->u_arg[1], "O_???");
22
23         return RVAL_DECODED;
24 }
25
26 SYS_FUNC(init_module)
27 {
28         printaddr(tcp->u_arg[0]);
29         tprintf(", %" PRI_klu ", ", tcp->u_arg[1]);
30         printstr(tcp, tcp->u_arg[2]);
31
32         return RVAL_DECODED;
33 }
34
35 #include "xlat/module_init_flags.h"
36
37 SYS_FUNC(finit_module)
38 {
39         /* file descriptor */
40         printfd(tcp, tcp->u_arg[0]);
41         tprints(", ");
42         /* param_values */
43         printstr(tcp, tcp->u_arg[1]);
44         tprints(", ");
45         /* flags */
46         printflags(module_init_flags, tcp->u_arg[2], "MODULE_INIT_???");
47
48         return RVAL_DECODED;
49 }