Linux Perf
sched_policy.c File Reference
#include <sched.h>
Include dependency graph for sched_policy.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SCHED_POLICY_MASK   0xff
 
#define SCHED_DEADLINE   6
 
#define SCHED_RESET_ON_FORK   0x40000000
 
#define P_POLICY_FLAG(n)
 
#define SCA_SCHED_POLICY   syscall_arg__scnprintf_sched_policy
 

Functions

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

Macro Definition Documentation

◆ P_POLICY_FLAG

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

◆ SCA_SCHED_POLICY

#define SCA_SCHED_POLICY   syscall_arg__scnprintf_sched_policy

Definition at line 48 of file sched_policy.c.

◆ SCHED_DEADLINE

#define SCHED_DEADLINE   6

Definition at line 11 of file sched_policy.c.

◆ SCHED_POLICY_MASK

#define SCHED_POLICY_MASK   0xff

Definition at line 8 of file sched_policy.c.

◆ SCHED_RESET_ON_FORK

#define SCHED_RESET_ON_FORK   0x40000000

Definition at line 14 of file sched_policy.c.

Function Documentation

◆ syscall_arg__scnprintf_sched_policy()

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

Definition at line 17 of file sched_policy.c.