Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
trace-event.h File Reference
#include "parse-events.h"
#include "event-parse.h"
#include "session.h"

Go to the source code of this file.

Data Structures

struct  tracing_data
 
struct  scripting_ops
 
struct  scripting_context
 

Macros

#define TS_SHIFT   27
 

Enumerations

enum  { RINGBUF_TYPE_PADDING = 29, RINGBUF_TYPE_TIME_EXTEND = 30, RINGBUF_TYPE_TIME_STAMP = 31 }
 

Functions

int bigendian (void)
 
struct peventread_trace_init (int file_bigendian, int host_bigendian)
 
void print_trace_event (struct pevent *pevent, int cpu, void *data, int size)
 
void event_format__print (struct event_format *event, int cpu, void *data, int size)
 
void print_event (struct pevent *pevent, int cpu, void *data, int size, unsigned long long nsecs, char *comm)
 
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)
 
struct pevent_recordtrace_peek_data (struct pevent *pevent, int cpu)
 
unsigned long long raw_field_value (struct event_format *event, const char *name, void *data)
 
voidraw_field_ptr (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)
 
ssize_t trace_report (int fd, struct pevent **pevent, bool repipe)
 
int trace_parse_common_type (struct pevent *pevent, void *data)
 
int trace_parse_common_pid (struct pevent *pevent, void *data)
 
struct event_formattrace_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)
 
struct pevent_recordtrace_read_data (struct pevent *pevent, int cpu)
 
int read_tracing_data (int fd, struct list_head *pattrs)
 
struct tracing_datatracing_data_get (struct list_head *pattrs, int fd, bool temp)
 
void 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

int header_page_size_size
 
int header_page_ts_size
 
int header_page_data_offset
 
bool latency_format
 
struct peventperf_pevent
 

Macro Definition Documentation

#define TS_SHIFT   27

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

Enumeration Type Documentation

anonymous enum
Enumerator:
RINGBUF_TYPE_PADDING 
RINGBUF_TYPE_TIME_EXTEND 
RINGBUF_TYPE_TIME_STAMP 

Definition at line 20 of file trace-event.h.

Function Documentation

int bigendian ( void  )

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

int common_flags ( struct scripting_context context)

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

int common_lock_depth ( struct scripting_context context)

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

int common_pc ( struct scripting_context context)

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

unsigned long long eval_flag ( const char flag)

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

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

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

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

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

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

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

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

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

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

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

void print_event ( struct pevent pevent,
int  cpu,
void data,
int  size,
unsigned long long  nsecs,
char comm 
)

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

void print_trace_event ( struct pevent pevent,
int  cpu,
void data,
int  size 
)

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

void* raw_field_ptr ( struct event_format event,
const char name,
void data 
)

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

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

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

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

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

struct pevent* read_trace_init ( int  file_bigendian,
int  host_bigendian 
)
read

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

int read_tracing_data ( int  fd,
struct list_head pattrs 
)

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

int script_spec_register ( const char spec,
struct scripting_ops ops 
)

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

void setup_perl_scripting ( void  )

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

void setup_python_scripting ( void  )

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

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

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

int trace_parse_common_pid ( struct pevent pevent,
void data 
)

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

int trace_parse_common_type ( struct pevent pevent,
void data 
)

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

struct pevent_record* trace_peek_data ( struct pevent pevent,
int  cpu 
)
read

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

struct pevent_record* trace_read_data ( struct pevent pevent,
int  cpu 
)
read

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

ssize_t trace_report ( int  fd,
struct pevent **  pevent,
bool  repipe 
)

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

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

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

void tracing_data_put ( struct tracing_data tdata)

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

Variable Documentation

int header_page_data_offset

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

int header_page_size_size

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

int header_page_ts_size

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

bool latency_format

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

struct pevent* perf_pevent