Linux Perf
trace-event-read.c File Reference
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include "../perf.h"
#include "util.h"
#include "trace-event.h"
#include "debug.h"
Include dependency graph for trace-event-read.c:

Go to the source code of this file.

Functions

static int __do_read (int fd, void *buf, int size)
 
static int do_read (void *data, int size)
 
static void skip (int size)
 
static unsigned int read4 (struct pevent *pevent)
 
static unsigned long long read8 (struct pevent *pevent)
 
static char * read_string (void)
 
static int read_proc_kallsyms (struct pevent *pevent)
 
static int read_ftrace_printk (struct pevent *pevent)
 
static int read_header_files (struct pevent *pevent)
 
static int read_ftrace_file (struct pevent *pevent, unsigned long long size)
 
static int read_event_file (struct pevent *pevent, char *sys, unsigned long long size)
 
static int read_ftrace_files (struct pevent *pevent)
 
static int read_event_files (struct pevent *pevent)
 
static int read_saved_cmdline (struct pevent *pevent)
 
ssize_t trace_report (int fd, struct trace_event *tevent, bool __repipe)
 

Variables

static int input_fd
 
static ssize_t trace_data_size
 
static bool repipe
 

Function Documentation

◆ __do_read()

static int __do_read ( int  fd,
void *  buf,
int  size 
)
static

Definition at line 44 of file trace-event-read.c.

◆ do_read()

static int do_read ( void *  data,
int  size 
)
static

Definition at line 70 of file trace-event-read.c.

Here is the call graph for this function:

◆ read4()

static unsigned int read4 ( struct pevent *  pevent)
static

Definition at line 99 of file trace-event-read.c.

Here is the call graph for this function:

◆ read8()

static unsigned long long read8 ( struct pevent *  pevent)
static

Definition at line 108 of file trace-event-read.c.

Here is the call graph for this function:

◆ read_event_file()

static int read_event_file ( struct pevent *  pevent,
char *  sys,
unsigned long long  size 
)
static

Definition at line 287 of file trace-event-read.c.

Here is the call graph for this function:

◆ read_event_files()

static int read_event_files ( struct pevent *  pevent)
static

Definition at line 331 of file trace-event-read.c.

Here is the call graph for this function:

◆ read_ftrace_file()

static int read_ftrace_file ( struct pevent *  pevent,
unsigned long long  size 
)
static

Definition at line 262 of file trace-event-read.c.

Here is the call graph for this function:

◆ read_ftrace_files()

static int read_ftrace_files ( struct pevent *  pevent)
static

Definition at line 313 of file trace-event-read.c.

Here is the call graph for this function:

◆ read_ftrace_printk()

static int read_ftrace_printk ( struct pevent *  pevent)
static

Definition at line 184 of file trace-event-read.c.

Here is the call graph for this function:

◆ read_header_files()

static int read_header_files ( struct pevent *  pevent)
static

Definition at line 211 of file trace-event-read.c.

Here is the call graph for this function:

◆ read_proc_kallsyms()

static int read_proc_kallsyms ( struct pevent *  pevent)
static

Definition at line 161 of file trace-event-read.c.

Here is the call graph for this function:

◆ read_saved_cmdline()

static int read_saved_cmdline ( struct pevent *  pevent)
static

Definition at line 359 of file trace-event-read.c.

Here is the call graph for this function:

◆ read_string()

static char* read_string ( void  )
static

Definition at line 117 of file trace-event-read.c.

Here is the call graph for this function:

◆ skip()

static void skip ( int  size)
static

Definition at line 87 of file trace-event-read.c.

Here is the call graph for this function:

◆ trace_report()

ssize_t trace_report ( int  fd,
struct trace_event tevent,
bool  __repipe 
)

Definition at line 389 of file trace-event-read.c.

Here is the call graph for this function:

Variable Documentation

◆ input_fd

int input_fd
static

Definition at line 39 of file trace-event-read.c.

◆ repipe

bool repipe
static

Definition at line 42 of file trace-event-read.c.

◆ trace_data_size

ssize_t trace_data_size
static

Definition at line 41 of file trace-event-read.c.