Merge tag 'block-5.9-2020-08-14' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / perf / trace / beauty / futex_val3.c
blob9114f7620571ea4a1a1d6d0cea6f5fab153e6ed1
1 // SPDX-License-Identifier: LGPL-2.1
2 #include <linux/futex.h>
4 #ifndef FUTEX_BITSET_MATCH_ANY
5 #define FUTEX_BITSET_MATCH_ANY 0xffffffff
6 #endif
8 static size_t syscall_arg__scnprintf_futex_val3(char *bf, size_t size, struct syscall_arg *arg)
10 const char *prefix = "FUTEX_BITSET_";
11 unsigned int bitset = arg->val;
13 if (bitset == FUTEX_BITSET_MATCH_ANY)
14 return scnprintf(bf, size, "%s%s", arg->show_string_prefix ? prefix : "", "MATCH_ANY");
16 return scnprintf(bf, size, "%#xd", bitset);
19 #define SCA_FUTEX_VAL3 syscall_arg__scnprintf_futex_val3