]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/perf/trace/beauty/flock.c
1 // SPDX-License-Identifier: GPL-2.0
13 #define LOCK_WRITE 128
20 static size_t syscall_arg__scnprintf_flock(char *bf
, size_t size
,
21 struct syscall_arg
*arg
)
23 int printed
= 0, op
= arg
->val
;
26 return scnprintf(bf
, size
, "NONE");
28 if ((op & LOCK_##cmd) == LOCK_##cmd) { \
29 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #cmd); \
44 printed
+= scnprintf(bf
+ printed
, size
- printed
, "%s%#x", printed
? "|" : "", op
);
49 #define SCA_FLOCK syscall_arg__scnprintf_flock