Linux Perf
trace-event.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <linux/kernel.h>
#include <linux/err.h>
#include <traceevent/event-parse.h>
#include <api/fs/tracing_path.h>
#include <api/fs/fs.h>
#include "trace-event.h"
#include "machine.h"
#include "util.h"
Include dependency graph for trace-event.c:

Go to the source code of this file.

Functions

int trace_event__init (struct trace_event *t)
 
static int trace_event__init2 (void)
 
int trace_event__register_resolver (struct machine *machine, pevent_func_resolver_t *func)
 
void trace_event__cleanup (struct trace_event *t)
 
static struct event_format * tp_format (const char *sys, const char *name)
 
struct event_format * trace_event__tp_format (const char *sys, const char *name)
 
struct event_format * trace_event__tp_format_id (int id)
 

Variables

static struct trace_event tevent
 
static bool tevent_initialized
 

Function Documentation

◆ tp_format()

static struct event_format* tp_format ( const char *  sys,
const char *  name 
)
static

Definition at line 76 of file trace-event.c.

Here is the call graph for this function:

◆ trace_event__cleanup()

void trace_event__cleanup ( struct trace_event t)

Definition at line 66 of file trace-event.c.

◆ trace_event__init()

int trace_event__init ( struct trace_event t)

Definition at line 29 of file trace-event.c.

◆ trace_event__init2()

static int trace_event__init2 ( void  )
static

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

Here is the call graph for this function:

◆ trace_event__register_resolver()

int trace_event__register_resolver ( struct machine machine,
pevent_func_resolver_t *  func 
)

Definition at line 57 of file trace-event.c.

Here is the call graph for this function:

◆ trace_event__tp_format()

struct event_format* trace_event__tp_format ( const char *  sys,
const char *  name 
)

Definition at line 106 of file trace-event.c.

Here is the call graph for this function:

◆ trace_event__tp_format_id()

struct event_format* trace_event__tp_format_id ( int  id)

Definition at line 114 of file trace-event.c.

Here is the call graph for this function:

Variable Documentation

◆ tevent

struct trace_event tevent
static

Definition at line 26 of file trace-event.c.

◆ tevent_initialized

bool tevent_initialized
static

Definition at line 27 of file trace-event.c.