Linux Perf
mmap.c File Reference
#include <sys/mman.h>
#include <inttypes.h>
#include <asm/bug.h>
#include "debug.h"
#include "event.h"
#include "mmap.h"
#include "util.h"
Include dependency graph for mmap.c:

Go to the source code of this file.

Functions

size_t perf_mmap__mmap_len (struct perf_mmap *map)
 
static union perf_eventperf_mmap__read (struct perf_mmap *map, u64 *startp, u64 end)
 
union perf_eventperf_mmap__read_event (struct perf_mmap *map)
 
static bool perf_mmap__empty (struct perf_mmap *map)
 
void perf_mmap__get (struct perf_mmap *map)
 
void perf_mmap__put (struct perf_mmap *map)
 
void perf_mmap__consume (struct perf_mmap *map)
 
int __weak auxtrace_mmap__mmap (struct auxtrace_mmap *mm __maybe_unused, struct auxtrace_mmap_params *mp __maybe_unused, void *userpg __maybe_unused, int fd __maybe_unused)
 
void __weak auxtrace_mmap__munmap (struct auxtrace_mmap *mm __maybe_unused)
 
void __weak auxtrace_mmap_params__init (struct auxtrace_mmap_params *mp __maybe_unused, off_t auxtrace_offset __maybe_unused, unsigned int auxtrace_pages __maybe_unused, bool auxtrace_overwrite __maybe_unused)
 
void __weak auxtrace_mmap_params__set_idx (struct auxtrace_mmap_params *mp __maybe_unused, struct perf_evlist *evlist __maybe_unused, int idx __maybe_unused, bool per_cpu __maybe_unused)
 
void perf_mmap__munmap (struct perf_mmap *map)
 
int perf_mmap__mmap (struct perf_mmap *map, struct mmap_params *mp, int fd)
 
static int overwrite_rb_find_range (void *buf, int mask, u64 *start, u64 *end)
 
static int __perf_mmap__read_init (struct perf_mmap *md)
 
int perf_mmap__read_init (struct perf_mmap *map)
 
int perf_mmap__push (struct perf_mmap *md, void *to, int push(void *to, void *buf, size_t size))
 
void perf_mmap__read_done (struct perf_mmap *map)
 

Function Documentation

◆ __perf_mmap__read_init()

static int __perf_mmap__read_init ( struct perf_mmap md)
static

Definition at line 237 of file mmap.c.

Here is the call graph for this function:

◆ auxtrace_mmap__mmap()

int __weak auxtrace_mmap__mmap ( struct auxtrace_mmap *mm  __maybe_unused,
struct auxtrace_mmap_params *mp  __maybe_unused,
void *userpg  __maybe_unused,
int fd  __maybe_unused 
)

Definition at line 130 of file mmap.c.

◆ auxtrace_mmap__munmap()

void __weak auxtrace_mmap__munmap ( struct auxtrace_mmap *mm  __maybe_unused)

Definition at line 138 of file mmap.c.

◆ auxtrace_mmap_params__init()

void __weak auxtrace_mmap_params__init ( struct auxtrace_mmap_params *mp  __maybe_unused,
off_t auxtrace_offset  __maybe_unused,
unsigned int auxtrace_pages  __maybe_unused,
bool auxtrace_overwrite  __maybe_unused 
)

Definition at line 142 of file mmap.c.

◆ auxtrace_mmap_params__set_idx()

void __weak auxtrace_mmap_params__set_idx ( struct auxtrace_mmap_params *mp  __maybe_unused,
struct perf_evlist *evlist  __maybe_unused,
int idx  __maybe_unused,
bool per_cpu  __maybe_unused 
)

Definition at line 149 of file mmap.c.

◆ overwrite_rb_find_range()

static int overwrite_rb_find_range ( void *  buf,
int  mask,
u64 *  start,
u64 *  end 
)
static

Definition at line 202 of file mmap.c.

◆ perf_mmap__consume()

void perf_mmap__consume ( struct perf_mmap map)

Definition at line 118 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__empty()

static bool perf_mmap__empty ( struct perf_mmap map)
static

Definition at line 100 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__get()

void perf_mmap__get ( struct perf_mmap map)

Definition at line 105 of file mmap.c.

◆ perf_mmap__mmap()

int perf_mmap__mmap ( struct perf_mmap map,
struct mmap_params mp,
int  fd 
)

Definition at line 167 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__mmap_len()

size_t perf_mmap__mmap_len ( struct perf_mmap map)

Definition at line 18 of file mmap.c.

◆ perf_mmap__munmap()

void perf_mmap__munmap ( struct perf_mmap map)

Definition at line 156 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__push()

int perf_mmap__push ( struct perf_mmap md,
void *  to,
int   pushvoid *to, void *buf, size_t size 
)

Definition at line 282 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__put()

void perf_mmap__put ( struct perf_mmap map)

Definition at line 110 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__read()

static union perf_event* perf_mmap__read ( struct perf_mmap map,
u64 *  startp,
u64  end 
)
static

Definition at line 24 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__read_done()

void perf_mmap__read_done ( struct perf_mmap map)

Definition at line 329 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__read_event()

union perf_event* perf_mmap__read_event ( struct perf_mmap map)

Definition at line 78 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__read_init()

int perf_mmap__read_init ( struct perf_mmap map)

Definition at line 271 of file mmap.c.

Here is the call graph for this function: