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

Go to the source code of this file.

Macros

#define SECCOMP_SET_MODE_STRICT   0
 
#define SECCOMP_SET_MODE_FILTER   1
 
#define P_SECCOMP_SET_MODE_OP(n)   case SECCOMP_SET_MODE_##n: printed = scnprintf(bf, size, #n); break
 
#define SCA_SECCOMP_OP   syscall_arg__scnprintf_seccomp_op
 
#define SECCOMP_FILTER_FLAG_TSYNC   1
 
#define P_FLAG(n)
 
#define SCA_SECCOMP_FLAGS   syscall_arg__scnprintf_seccomp_flags
 

Functions

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

Macro Definition Documentation

◆ P_FLAG

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

◆ P_SECCOMP_SET_MODE_OP

#define P_SECCOMP_SET_MODE_OP (   n)    case SECCOMP_SET_MODE_##n: printed = scnprintf(bf, size, #n); break

◆ SCA_SECCOMP_FLAGS

#define SCA_SECCOMP_FLAGS   syscall_arg__scnprintf_seccomp_flags

Definition at line 51 of file seccomp.c.

◆ SCA_SECCOMP_OP

#define SCA_SECCOMP_OP   syscall_arg__scnprintf_seccomp_op

Definition at line 25 of file seccomp.c.

◆ SECCOMP_FILTER_FLAG_TSYNC

#define SECCOMP_FILTER_FLAG_TSYNC   1

Definition at line 28 of file seccomp.c.

◆ SECCOMP_SET_MODE_FILTER

#define SECCOMP_SET_MODE_FILTER   1

Definition at line 6 of file seccomp.c.

◆ SECCOMP_SET_MODE_STRICT

#define SECCOMP_SET_MODE_STRICT   0

Definition at line 3 of file seccomp.c.

Function Documentation

◆ syscall_arg__scnprintf_seccomp_flags()

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

Definition at line 31 of file seccomp.c.

◆ syscall_arg__scnprintf_seccomp_op()

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

Definition at line 9 of file seccomp.c.