Linux Perf
data.c File Reference
#include <linux/compiler.h>
#include <linux/kernel.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include "data.h"
#include "util.h"
#include "debug.h"
Include dependency graph for data.c:

Go to the source code of this file.

Functions

static bool check_pipe (struct perf_data *data)
 
static int check_backup (struct perf_data *data)
 
static int open_file_read (struct perf_data *data)
 
static int open_file_write (struct perf_data *data)
 
static int open_file (struct perf_data *data)
 
int perf_data__open (struct perf_data *data)
 
void perf_data__close (struct perf_data *data)
 
ssize_t perf_data_file__write (struct perf_data_file *file, void *buf, size_t size)
 
ssize_t perf_data__write (struct perf_data *data, void *buf, size_t size)
 
int perf_data__switch (struct perf_data *data, const char *postfix, size_t pos, bool at_exit)
 

Function Documentation

◆ check_backup()

static int check_backup ( struct perf_data data)
static

Definition at line 36 of file data.c.

◆ check_pipe()

static bool check_pipe ( struct perf_data data)
static

Definition at line 15 of file data.c.

Here is the call graph for this function:

◆ open_file()

static int open_file ( struct perf_data data)
static

Definition at line 111 of file data.c.

Here is the call graph for this function:

◆ open_file_read()

static int open_file_read ( struct perf_data data)
static

Definition at line 52 of file data.c.

◆ open_file_write()

static int open_file_write ( struct perf_data data)
static

Definition at line 93 of file data.c.

Here is the call graph for this function:

◆ perf_data__close()

void perf_data__close ( struct perf_data data)

Definition at line 133 of file data.c.

◆ 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__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: