Linux Perf
mmap.c File Reference
#include <uapi/linux/mman.h>
#include "trace/beauty/generated/madvise_behavior_array.c"
Include dependency graph for mmap.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define P_MMAP_PROT(n)
 
#define SCA_MMAP_PROT   syscall_arg__scnprintf_mmap_prot
 
#define P_MMAP_FLAG(n)
 
#define SCA_MMAP_FLAGS   syscall_arg__scnprintf_mmap_flags
 
#define P_MREMAP_FLAG(n)
 
#define SCA_MREMAP_FLAGS   syscall_arg__scnprintf_mremap_flags
 
#define SCA_MADV_BHV   syscall_arg__scnprintf_madvise_behavior
 

Functions

static size_t syscall_arg__scnprintf_mmap_prot (char *bf, size_t size, struct syscall_arg *arg)
 
static size_t syscall_arg__scnprintf_mmap_flags (char *bf, size_t size, struct syscall_arg *arg)
 
static size_t syscall_arg__scnprintf_mremap_flags (char *bf, size_t size, struct syscall_arg *arg)
 
static size_t madvise__scnprintf_behavior (int behavior, char *bf, size_t size)
 
static size_t syscall_arg__scnprintf_madvise_behavior (char *bf, size_t size, struct syscall_arg *arg)
 

Macro Definition Documentation

◆ P_MMAP_FLAG

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

◆ P_MMAP_PROT

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

◆ P_MREMAP_FLAG

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

◆ SCA_MADV_BHV

#define SCA_MADV_BHV   syscall_arg__scnprintf_madvise_behavior

Definition at line 121 of file mmap.c.

◆ SCA_MMAP_FLAGS

#define SCA_MMAP_FLAGS   syscall_arg__scnprintf_mmap_flags

Definition at line 79 of file mmap.c.

◆ SCA_MMAP_PROT

#define SCA_MMAP_PROT   syscall_arg__scnprintf_mmap_prot

Definition at line 31 of file mmap.c.

◆ SCA_MREMAP_FLAGS

#define SCA_MREMAP_FLAGS   syscall_arg__scnprintf_mremap_flags

Definition at line 102 of file mmap.c.

Function Documentation

◆ madvise__scnprintf_behavior()

static size_t madvise__scnprintf_behavior ( int  behavior,
char *  bf,
size_t  size 
)
static

Definition at line 104 of file mmap.c.

◆ syscall_arg__scnprintf_madvise_behavior()

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

Definition at line 115 of file mmap.c.

Here is the call graph for this function:

◆ syscall_arg__scnprintf_mmap_flags()

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

Definition at line 33 of file mmap.c.

◆ syscall_arg__scnprintf_mmap_prot()

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

Definition at line 4 of file mmap.c.

◆ syscall_arg__scnprintf_mremap_flags()

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

Definition at line 81 of file mmap.c.