]> granicus.if.org Git - strace/blob - fallocate.c
xlat: add BPF_F_TEST_STATE_FREQ to bpf_prog_flags
[strace] / fallocate.c
1 /*
2  * Copyright (c) 2014-2018 The strace developers.
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: LGPL-2.1-or-later
6  */
7
8 #include "defs.h"
9
10 #ifdef HAVE_LINUX_FALLOC_H
11 # include <linux/falloc.h>
12 #endif
13
14 #include "xlat/falloc_flags.h"
15
16 SYS_FUNC(fallocate)
17 {
18         int argn;
19
20         /* fd */
21         printfd(tcp, tcp->u_arg[0]);
22         tprints(", ");
23
24         /* mode */
25         printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
26         tprints(", ");
27
28         /* offset */
29         argn = printllval(tcp, "%lld, ", 2);
30
31         /* len */
32         printllval(tcp, "%lld", argn);
33
34         return RVAL_DECODED;
35 }