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

Go to the source code of this file.

Classes

struct  perf_data_file
 
struct  perf_data
 

Enumerations

enum  perf_data_mode { PERF_DATA_MODE_WRITE, PERF_DATA_MODE_READ }
 

Functions

static bool perf_data__is_read (struct perf_data *data)
 
static bool perf_data__is_write (struct perf_data *data)
 
static int perf_data__is_pipe (struct perf_data *data)
 
static int perf_data__fd (struct perf_data *data)
 
static unsigned long perf_data__size (struct perf_data *data)
 
int perf_data__open (struct perf_data *data)
 
void perf_data__close (struct perf_data *data)
 
ssize_t perf_data__write (struct perf_data *data, void *buf, size_t size)
 
ssize_t perf_data_file__write (struct perf_data_file *file, void *buf, size_t size)
 
int perf_data__switch (struct perf_data *data, const char *postfix, size_t pos, bool at_exit)
 

Enumeration Type Documentation

◆ perf_data_mode

Enumerator
PERF_DATA_MODE_WRITE 
PERF_DATA_MODE_READ 

Definition at line 7 of file data.h.

Function Documentation

◆ perf_data__close()

void perf_data__close ( struct perf_data data)

Definition at line 133 of file data.c.

◆ perf_data__fd()

static int perf_data__fd ( struct perf_data data)
inlinestatic

Definition at line 40 of file data.h.

◆ perf_data__is_pipe()

static int perf_data__is_pipe ( struct perf_data data)
inlinestatic

Definition at line 35 of file data.h.

◆ perf_data__is_read()

static bool perf_data__is_read ( struct perf_data data)
inlinestatic

Definition at line 25 of file data.h.

◆ perf_data__is_write()

static bool perf_data__is_write ( struct perf_data data)
inlinestatic

Definition at line 30 of file data.h.

◆ perf_data__open()

int perf_data__open ( struct perf_data data)

Definition at line 122 of file data.c.

Here is the call graph for this function:

◆ perf_data__size()

static unsigned long perf_data__size ( struct perf_data data)
inlinestatic

Definition at line 45 of file data.h.

Here is the call graph for this function:

◆ perf_data__switch()

int perf_data__switch ( struct perf_data data,
const char *  postfix,
size_t  pos,
bool  at_exit 
)

Definition at line 150 of file data.c.

Here is the call graph for this function:

◆ perf_data__write()

ssize_t perf_data__write ( struct perf_data data,
void *  buf,
size_t  size 
)

Definition at line 144 of file data.c.

Here is the call graph for this function:

◆ perf_data_file__write()

ssize_t perf_data_file__write ( struct perf_data_file file,
void *  buf,
size_t  size 
)

Definition at line 138 of file data.c.

Here is the call graph for this function: