drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / tools / perf / trace / beauty / statx.c
blob24843e614b935f3aee387169a5301c16fc083971
1 // SPDX-License-Identifier: LGPL-2.1
2 /*
3 * trace/beauty/statx.c
5 * Copyright (C) 2017, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
6 */
8 #include "trace/beauty/beauty.h"
9 #include <sys/types.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;
22 int mask = arg->val;
24 return statx__scnprintf_mask(mask, bf, size, show_prefix);