Linux Perf
futex_val3.c
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/futex.h>
3 
4 #ifndef FUTEX_BITSET_MATCH_ANY
5 #define FUTEX_BITSET_MATCH_ANY 0xffffffff
6 #endif
7 
8 static size_t syscall_arg__scnprintf_futex_val3(char *bf, size_t size, struct syscall_arg *arg)
9 {
10  unsigned int bitset = arg->val;
11 
12  if (bitset == FUTEX_BITSET_MATCH_ANY)
13  return scnprintf(bf, size, "MATCH_ANY");
14 
15  return scnprintf(bf, size, "%#xd", bitset);
16 }
17 
18 #define SCA_FUTEX_VAL3 syscall_arg__scnprintf_futex_val3
#define FUTEX_BITSET_MATCH_ANY
Definition: futex_val3.c:5
size_t size
Definition: evsel.c:60
static size_t syscall_arg__scnprintf_futex_val3(char *bf, size_t size, struct syscall_arg *arg)
Definition: futex_val3.c:8
unsigned long val
Definition: beauty.h:44