1 // SPDX-License-Identifier: LGPL-2.1
5 * Copyright (C) 2017, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
8 #include "trace/beauty/beauty.h"
10 #include <linux/log2.h>
12 static size_t statx__scnprintf_mask(unsigned long mask
, char *bf
, size_t size
, bool show_prefix
)
14 #include "trace/beauty/generated/statx_mask_array.c"
15 static DEFINE_STRARRAY(statx_mask
, "STATX_");
16 return strarray__scnprintf_flags(&strarray__statx_mask
, bf
, size
, show_prefix
, mask
);
19 size_t syscall_arg__scnprintf_statx_mask(char *bf
, size_t size
, struct syscall_arg
*arg
)
21 bool show_prefix
= arg
->show_string_prefix
;
24 return statx__scnprintf_mask(mask
, bf
, size
, show_prefix
);