Linux Perf
perf_event_open.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PERF_FLAG_FD_NO_GROUP   (1UL << 0)
 
#define PERF_FLAG_FD_OUTPUT   (1UL << 1)
 
#define PERF_FLAG_PID_CGROUP   (1UL << 2) /* pid=cgroup id, per-cpu mode only */
 
#define PERF_FLAG_FD_CLOEXEC   (1UL << 3) /* O_CLOEXEC */
 
#define P_FLAG(n)
 
#define SCA_PERF_FLAGS   syscall_arg__scnprintf_perf_flags
 

Functions

static size_t syscall_arg__scnprintf_perf_flags (char *bf, size_t size, struct syscall_arg *arg)
 

Macro Definition Documentation

◆ P_FLAG

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

◆ PERF_FLAG_FD_CLOEXEC

#define PERF_FLAG_FD_CLOEXEC   (1UL << 3) /* O_CLOEXEC */

Definition at line 15 of file perf_event_open.c.

◆ PERF_FLAG_FD_NO_GROUP

#define PERF_FLAG_FD_NO_GROUP   (1UL << 0)

Definition at line 3 of file perf_event_open.c.

◆ PERF_FLAG_FD_OUTPUT

#define PERF_FLAG_FD_OUTPUT   (1UL << 1)

Definition at line 7 of file perf_event_open.c.

◆ PERF_FLAG_PID_CGROUP

#define PERF_FLAG_PID_CGROUP   (1UL << 2) /* pid=cgroup id, per-cpu mode only */

Definition at line 11 of file perf_event_open.c.

◆ SCA_PERF_FLAGS

#define SCA_PERF_FLAGS   syscall_arg__scnprintf_perf_flags

Definition at line 44 of file perf_event_open.c.

Function Documentation

◆ syscall_arg__scnprintf_perf_flags()

static size_t syscall_arg__scnprintf_perf_flags ( char *  bf,
size_t  size,
struct syscall_arg arg 
)
static

Definition at line 18 of file perf_event_open.c.