Linux Perf
open_flags.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
Include dependency graph for open_flags.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define O_DIRECT   00040000
 
#define O_DIRECTORY   00200000
 
#define O_NOATIME   01000000
 
#define O_TMPFILE   020000000
 
#define O_LARGEFILE   00100000
 
#define P_FLAG(n)
 

Functions

size_t open__scnprintf_flags (unsigned long flags, char *bf, size_t size)
 
size_t syscall_arg__scnprintf_open_flags (char *bf, size_t size, struct syscall_arg *arg)
 

Macro Definition Documentation

◆ O_DIRECT

#define O_DIRECT   00040000

Definition at line 7 of file open_flags.c.

◆ O_DIRECTORY

#define O_DIRECTORY   00200000

Definition at line 11 of file open_flags.c.

◆ O_LARGEFILE

#define O_LARGEFILE   00100000

Definition at line 23 of file open_flags.c.

◆ O_NOATIME

#define O_NOATIME   01000000

Definition at line 15 of file open_flags.c.

◆ O_TMPFILE

#define O_TMPFILE   020000000

Definition at line 19 of file open_flags.c.

◆ P_FLAG

#define P_FLAG (   n)
Value:
if (flags & O_##n) { \
printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \
flags &= ~O_##n; \
}
size_t size
Definition: evsel.c:60
u32 flags

Function Documentation

◆ open__scnprintf_flags()

size_t open__scnprintf_flags ( unsigned long  flags,
char *  bf,
size_t  size 
)

Definition at line 25 of file open_flags.c.

◆ syscall_arg__scnprintf_open_flags()

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

Definition at line 77 of file open_flags.c.

Here is the call graph for this function: