Linux Perf
flock.c File Reference
#include "trace/beauty/beauty.h"
#include <linux/kernel.h>
#include <uapi/linux/fcntl.h>
Include dependency graph for flock.c:

Go to the source code of this file.

Macros

#define LOCK_MAND   32
 
#define LOCK_READ   64
 
#define LOCK_WRITE   128
 
#define LOCK_RW   192
 
#define P_CMD(cmd)
 

Functions

size_t syscall_arg__scnprintf_flock (char *bf, size_t size, struct syscall_arg *arg)
 

Macro Definition Documentation

◆ LOCK_MAND

#define LOCK_MAND   32

Definition at line 8 of file flock.c.

◆ LOCK_READ

#define LOCK_READ   64

Definition at line 12 of file flock.c.

◆ LOCK_RW

#define LOCK_RW   192

Definition at line 20 of file flock.c.

◆ LOCK_WRITE

#define LOCK_WRITE   128

Definition at line 16 of file flock.c.

◆ P_CMD

#define P_CMD (   cmd)
Value:
if ((op & LOCK_##cmd) == LOCK_##cmd) { \
printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #cmd); \
op &= ~LOCK_##cmd; \
}
size_t size
Definition: evsel.c:60

Function Documentation

◆ syscall_arg__scnprintf_flock()

size_t syscall_arg__scnprintf_flock ( char *  bf,
size_t  size,
struct syscall_arg arg 
)

Definition at line 23 of file flock.c.