Linux Perf
mmap.h File Reference
#include <linux/compiler.h>
#include <linux/refcount.h>
#include <linux/types.h>
#include <asm/barrier.h>
#include <stdbool.h>
#include "auxtrace.h"
#include "event.h"
Include dependency graph for mmap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  perf_mmap
 
struct  mmap_params
 

Enumerations

enum  bkw_mmap_state { BKW_MMAP_NOTREADY, BKW_MMAP_RUNNING, BKW_MMAP_DATA_PENDING, BKW_MMAP_EMPTY }
 

Functions

int perf_mmap__mmap (struct perf_mmap *map, struct mmap_params *mp, int fd)
 
void perf_mmap__munmap (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)
 
static u64 perf_mmap__read_head (struct perf_mmap *mm)
 
static void perf_mmap__write_tail (struct perf_mmap *md, u64 tail)
 
union perf_eventperf_mmap__read_forward (struct perf_mmap *map)
 
union perf_eventperf_mmap__read_event (struct perf_mmap *map)
 
int perf_mmap__push (struct perf_mmap *md, void *to, int push(void *to, void *buf, size_t size))
 
size_t perf_mmap__mmap_len (struct perf_mmap *map)
 
int perf_mmap__read_init (struct perf_mmap *md)
 
void perf_mmap__read_done (struct perf_mmap *map)
 

Enumeration Type Documentation

◆ bkw_mmap_state

Enumerator
BKW_MMAP_NOTREADY 
BKW_MMAP_RUNNING 
BKW_MMAP_DATA_PENDING 
BKW_MMAP_EMPTY 

Definition at line 51 of file mmap.h.

Function Documentation

◆ 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__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_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_forward()

union perf_event* perf_mmap__read_forward ( struct perf_mmap map)

◆ perf_mmap__read_head()

static u64 perf_mmap__read_head ( struct perf_mmap mm)
inlinestatic

Definition at line 71 of file mmap.h.

◆ perf_mmap__read_init()

int perf_mmap__read_init ( struct perf_mmap md)

Definition at line 271 of file mmap.c.

Here is the call graph for this function:

◆ perf_mmap__write_tail()

static void perf_mmap__write_tail ( struct perf_mmap md,
u64  tail 
)
inlinestatic

Definition at line 79 of file mmap.h.

Here is the call graph for this function: