Linux Perf
trace-event.h File Reference
#include <traceevent/event-parse.h>
#include "parse-events.h"
Include dependency graph for trace-event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  trace_event
 
struct  tracing_data
 
struct  scripting_ops
 
struct  scripting_context
 

Functions

int trace_event__init (struct trace_event *t)
 
void trace_event__cleanup (struct trace_event *t)
 
int trace_event__register_resolver (struct machine *machine, pevent_func_resolver_t *func)
 
struct event_format * trace_event__tp_format (const char *sys, const char *name)
 
struct event_format * trace_event__tp_format_id (int id)
 
int bigendian (void)
 
void event_format__fprintf (struct event_format *event, int cpu, void *data, int size, FILE *fp)
 
void event_format__print (struct event_format *event, int cpu, void *data, int size)
 
int parse_ftrace_file (struct pevent *pevent, char *buf, unsigned long size)
 
int parse_event_file (struct pevent *pevent, char *buf, unsigned long size, char *sys)
 
unsigned long long raw_field_value (struct event_format *event, const char *name, void *data)
 
void parse_proc_kallsyms (struct pevent *pevent, char *file, unsigned int size)
 
void parse_ftrace_printk (struct pevent *pevent, char *file, unsigned int size)
 
void parse_saved_cmdline (struct pevent *pevent, char *file, unsigned int size)
 
ssize_t trace_report (int fd, struct trace_event *tevent, bool repipe)
 
struct event_format * trace_find_next_event (struct pevent *pevent, struct event_format *event)
 
unsigned long long read_size (struct event_format *event, void *ptr, int size)
 
unsigned long long eval_flag (const char *flag)
 
int read_tracing_data (int fd, struct list_head *pattrs)
 
struct tracing_datatracing_data_get (struct list_head *pattrs, int fd, bool temp)
 
int tracing_data_put (struct tracing_data *tdata)
 
int script_spec_register (const char *spec, struct scripting_ops *ops)
 
void setup_perl_scripting (void)
 
void setup_python_scripting (void)
 
int common_pc (struct scripting_context *context)
 
int common_flags (struct scripting_context *context)
 
int common_lock_depth (struct scripting_context *context)
 

Variables

unsigned int scripting_max_stack
 

Function Documentation

◆ bigendian()

int bigendian ( void  )

Definition at line 49 of file trace-event-info.c.

Here is the call graph for this function:

◆ common_flags()

int common_flags ( struct scripting_context context)

Definition at line 68 of file trace-event-parse.c.

Here is the call graph for this function:

◆ common_lock_depth()

int common_lock_depth ( struct scripting_context context)

Definition at line 54 of file trace-event-parse.c.

Here is the call graph for this function:

◆ common_pc()

int common_pc ( struct scripting_context context)

Definition at line 82 of file trace-event-parse.c.

Here is the call graph for this function:

◆ eval_flag()

unsigned long long eval_flag ( const char *  flag)

Definition at line 240 of file trace-event-parse.c.

◆ event_format__fprintf()

void event_format__fprintf ( struct event_format *  event,
int  cpu,
void *  data,
int  size,
FILE *  fp 
)

Definition at line 116 of file trace-event-parse.c.

Here is the call graph for this function:

◆ event_format__print()

void event_format__print ( struct event_format *  event,
int  cpu,
void *  data,
int  size 
)

Definition at line 133 of file trace-event-parse.c.

Here is the call graph for this function:

◆ parse_event_file()

int parse_event_file ( struct pevent *  pevent,
char *  buf,
unsigned long  size,
char *  sys 
)

Definition at line 186 of file trace-event-parse.c.

◆ parse_ftrace_file()

int parse_ftrace_file ( struct pevent *  pevent,
char *  buf,
unsigned long  size 
)

Definition at line 181 of file trace-event-parse.c.

◆ parse_ftrace_printk()

void parse_ftrace_printk ( struct pevent *  pevent,
char *  file,
unsigned int  size 
)

Definition at line 139 of file trace-event-parse.c.

◆ parse_proc_kallsyms()

void parse_proc_kallsyms ( struct pevent *  pevent,
char *  file,
unsigned int  size 
)

◆ parse_saved_cmdline()

void parse_saved_cmdline ( struct pevent *  pevent,
char *  file,
unsigned int  size 
)

Definition at line 164 of file trace-event-parse.c.

Here is the call graph for this function:

◆ raw_field_value()

unsigned long long raw_field_value ( struct event_format *  event,
const char *  name,
void *  data 
)

Definition at line 97 of file trace-event-parse.c.

◆ read_size()

unsigned long long read_size ( struct event_format *  event,
void *  ptr,
int  size 
)

Definition at line 111 of file trace-event-parse.c.

◆ read_tracing_data()

int read_tracing_data ( int  fd,
struct list_head *  pattrs 
)

Definition at line 601 of file trace-event-info.c.

Here is the call graph for this function:

◆ script_spec_register()

int script_spec_register ( const char *  spec,
struct scripting_ops ops 
)

Definition at line 2264 of file builtin-script.c.

Here is the call graph for this function:

◆ setup_perl_scripting()

void setup_perl_scripting ( void  )

Definition at line 165 of file trace-event-scripting.c.

Here is the call graph for this function:

◆ setup_python_scripting()

void setup_python_scripting ( void  )

Definition at line 102 of file trace-event-scripting.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__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:

◆ trace_find_next_event()

struct event_format* trace_find_next_event ( struct pevent *  pevent,
struct event_format *  event 
)

Definition at line 192 of file trace-event-parse.c.

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

◆ tracing_data_get()

struct tracing_data* tracing_data_get ( struct list_head *  pattrs,
int  fd,
bool  temp 
)

Definition at line 507 of file trace-event-info.c.

Here is the call graph for this function:

◆ tracing_data_put()

int tracing_data_put ( struct tracing_data tdata)

Definition at line 588 of file trace-event-info.c.

Here is the call graph for this function:

Variable Documentation

◆ scripting_max_stack

unsigned int scripting_max_stack

Definition at line 65 of file builtin-script.c.