Linux Perf
db-export.c File Reference
#include <errno.h>
#include "evsel.h"
#include "machine.h"
#include "thread.h"
#include "comm.h"
#include "symbol.h"
#include "event.h"
#include "util.h"
#include "thread-stack.h"
#include "callchain.h"
#include "call-path.h"
#include "db-export.h"
Include dependency graph for db-export.c:

Go to the source code of this file.

Classes

struct  deferred_export
 

Functions

static int db_export__deferred (struct db_export *dbe)
 
static void db_export__free_deferred (struct db_export *dbe)
 
static int db_export__defer_comm (struct db_export *dbe, struct comm *comm)
 
int db_export__init (struct db_export *dbe)
 
int db_export__flush (struct db_export *dbe)
 
void db_export__exit (struct db_export *dbe)
 
int db_export__evsel (struct db_export *dbe, struct perf_evsel *evsel)
 
int db_export__machine (struct db_export *dbe, struct machine *machine)
 
int db_export__thread (struct db_export *dbe, struct thread *thread, struct machine *machine, struct comm *comm)
 
int db_export__comm (struct db_export *dbe, struct comm *comm, struct thread *main_thread)
 
int db_export__comm_thread (struct db_export *dbe, struct comm *comm, struct thread *thread)
 
int db_export__dso (struct db_export *dbe, struct dso *dso, struct machine *machine)
 
int db_export__symbol (struct db_export *dbe, struct symbol *sym, struct dso *dso)
 
static int db_ids_from_al (struct db_export *dbe, struct addr_location *al, u64 *dso_db_id, u64 *sym_db_id, u64 *offset)
 
static struct call_pathcall_path_from_sample (struct db_export *dbe, struct machine *machine, struct thread *thread, struct perf_sample *sample, struct perf_evsel *evsel)
 
int db_export__branch_type (struct db_export *dbe, u32 branch_type, const char *name)
 
int db_export__sample (struct db_export *dbe, union perf_event *event, struct perf_sample *sample, struct perf_evsel *evsel, struct addr_location *al)
 
int db_export__branch_types (struct db_export *dbe)
 
int db_export__call_path (struct db_export *dbe, struct call_path *cp)
 
int db_export__call_return (struct db_export *dbe, struct call_return *cr)
 

Variables

struct {
   u32   branch_type
 
   const char *   name
 
branch_types []
 

Function Documentation

◆ call_path_from_sample()

static struct call_path* call_path_from_sample ( struct db_export dbe,
struct machine machine,
struct thread thread,
struct perf_sample sample,
struct perf_evsel evsel 
)
static

Definition at line 269 of file db-export.c.

Here is the call graph for this function:

◆ db_export__branch_type()

int db_export__branch_type ( struct db_export dbe,
u32  branch_type,
const char *  name 
)

Definition at line 341 of file db-export.c.

◆ db_export__branch_types()

int db_export__branch_types ( struct db_export dbe)

Definition at line 456 of file db-export.c.

Here is the call graph for this function:

◆ db_export__call_path()

int db_export__call_path ( struct db_export dbe,
struct call_path cp 
)

Definition at line 469 of file db-export.c.

Here is the call graph for this function:

◆ db_export__call_return()

int db_export__call_return ( struct db_export dbe,
struct call_return cr 
)

Definition at line 490 of file db-export.c.

Here is the call graph for this function:

◆ db_export__comm()

int db_export__comm ( struct db_export dbe,
struct comm comm,
struct thread main_thread 
)

Definition at line 171 of file db-export.c.

Here is the call graph for this function:

◆ db_export__comm_thread()

int db_export__comm_thread ( struct db_export dbe,
struct comm comm,
struct thread thread 
)

Definition at line 193 of file db-export.c.

◆ db_export__defer_comm()

static int db_export__defer_comm ( struct db_export dbe,
struct comm comm 
)
static

Definition at line 65 of file db-export.c.

Here is the call graph for this function:

◆ db_export__deferred()

static int db_export__deferred ( struct db_export dbe)
static

Definition at line 35 of file db-export.c.

Here is the call graph for this function:

◆ db_export__dso()

int db_export__dso ( struct db_export dbe,
struct dso dso,
struct machine machine 
)

Definition at line 206 of file db-export.c.

◆ db_export__evsel()

int db_export__evsel ( struct db_export dbe,
struct perf_evsel evsel 
)

Definition at line 98 of file db-export.c.

◆ db_export__exit()

void db_export__exit ( struct db_export dbe)

Definition at line 91 of file db-export.c.

Here is the call graph for this function:

◆ db_export__flush()

int db_export__flush ( struct db_export dbe)

Definition at line 86 of file db-export.c.

Here is the call graph for this function:

◆ db_export__free_deferred()

static void db_export__free_deferred ( struct db_export dbe)
static

Definition at line 53 of file db-export.c.

Here is the call graph for this function:

◆ db_export__init()

int db_export__init ( struct db_export dbe)

Definition at line 79 of file db-export.c.

Here is the call graph for this function:

◆ db_export__machine()

int db_export__machine ( struct db_export dbe,
struct machine machine 
)

Definition at line 111 of file db-export.c.

◆ db_export__sample()

int db_export__sample ( struct db_export dbe,
union perf_event event,
struct perf_sample sample,
struct perf_evsel evsel,
struct addr_location al 
)

Definition at line 350 of file db-export.c.

Here is the call graph for this function:

◆ db_export__symbol()

int db_export__symbol ( struct db_export dbe,
struct symbol sym,
struct dso dso 
)

Definition at line 220 of file db-export.c.

Here is the call graph for this function:

◆ db_export__thread()

int db_export__thread ( struct db_export dbe,
struct thread thread,
struct machine machine,
struct comm comm 
)

Definition at line 124 of file db-export.c.

Here is the call graph for this function:

◆ db_ids_from_al()

static int db_ids_from_al ( struct db_export dbe,
struct addr_location al,
u64 *  dso_db_id,
u64 *  sym_db_id,
u64 *  offset 
)
static

Definition at line 236 of file db-export.c.

Here is the call graph for this function:

Variable Documentation

◆ branch_type

u32 branch_type

Definition at line 431 of file db-export.c.

◆ branch_types

◆ name

const char* name

Definition at line 432 of file db-export.c.