Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
event.h File Reference
#include <limits.h>
#include <stdio.h>
#include "../perf.h"
#include "map.h"

Go to the source code of this file.

Data Structures

struct  ip_event
 
struct  mmap_event
 
struct  comm_event
 
struct  fork_event
 
struct  lost_event
 
struct  read_event
 
struct  sample_event
 
struct  regs_dump
 
struct  stack_dump
 
struct  perf_sample
 
struct  build_id_event
 
struct  attr_event
 
struct  perf_trace_event_type
 
struct  event_type_event
 
struct  tracing_data_event
 
union  perf_event
 

Macros

#define PERF_SAMPLE_MASK
 
#define BUILD_ID_SIZE   20
 
#define MAX_EVENT_NAME   64
 

Typedefs

typedef int(* perf_event__handler_t )(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine)
 

Enumerations

enum  perf_user_event_type {
  PERF_RECORD_USER_TYPE_START = 64, PERF_RECORD_HEADER_ATTR = 64, PERF_RECORD_HEADER_EVENT_TYPE = 65, PERF_RECORD_HEADER_TRACING_DATA = 66,
  PERF_RECORD_HEADER_BUILD_ID = 67, PERF_RECORD_FINISHED_ROUND = 68, PERF_RECORD_HEADER_MAX
}
 

Functions

void perf_event__print_totals (void)
 
int perf_event__synthesize_thread_map (struct perf_tool *tool, struct thread_map *threads, perf_event__handler_t process, struct machine *machine)
 
int perf_event__synthesize_threads (struct perf_tool *tool, perf_event__handler_t process, struct machine *machine)
 
int perf_event__synthesize_kernel_mmap (struct perf_tool *tool, perf_event__handler_t process, struct machine *machine, const char *symbol_name)
 
int perf_event__synthesize_modules (struct perf_tool *tool, perf_event__handler_t process, struct machine *machine)
 
int perf_event__process_comm (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine)
 
int perf_event__process_lost (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine)
 
int perf_event__process_mmap (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine)
 
int perf_event__process_task (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine)
 
int perf_event__process (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine)
 
int perf_event__preprocess_sample (const union perf_event *self, struct machine *machine, struct addr_location *al, struct perf_sample *sample, symbol_filter_t filter)
 
const charperf_event__name (unsigned int id)
 
int perf_event__synthesize_sample (union perf_event *event, u64 type, const struct perf_sample *sample, bool swapped)
 
size_t perf_event__fprintf_comm (union perf_event *event, FILE *fp)
 
size_t perf_event__fprintf_mmap (union perf_event *event, FILE *fp)
 
size_t perf_event__fprintf_task (union perf_event *event, FILE *fp)
 
size_t perf_event__fprintf (union perf_event *event, FILE *fp)
 

Macro Definition Documentation

#define BUILD_ID_SIZE   20

Definition at line 99 of file event.h.

#define MAX_EVENT_NAME   64

Definition at line 124 of file event.h.

#define PERF_SAMPLE_MASK
Value:
PERF_SAMPLE_TIME | PERF_SAMPLE_ADDR | \
PERF_SAMPLE_ID | PERF_SAMPLE_STREAM_ID | \
PERF_SAMPLE_CPU | PERF_SAMPLE_PERIOD)

Definition at line 61 of file event.h.

Typedef Documentation

typedef int(* perf_event__handler_t)(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine)

Definition at line 161 of file event.h.

Enumeration Type Documentation

Enumerator:
PERF_RECORD_USER_TYPE_START 
PERF_RECORD_HEADER_ATTR 
PERF_RECORD_HEADER_EVENT_TYPE 
PERF_RECORD_HEADER_TRACING_DATA 
PERF_RECORD_HEADER_BUILD_ID 
PERF_RECORD_FINISHED_ROUND 
PERF_RECORD_HEADER_MAX 

Definition at line 108 of file event.h.

Function Documentation

size_t perf_event__fprintf ( union perf_event event,
FILE *  fp 
)

Definition at line 730 of file event.c.

size_t perf_event__fprintf_comm ( union perf_event event,
FILE *  fp 
)

Definition at line 512 of file event.c.

size_t perf_event__fprintf_mmap ( union perf_event event,
FILE *  fp 
)

Definition at line 652 of file event.c.

size_t perf_event__fprintf_task ( union perf_event event,
FILE *  fp 
)

Definition at line 698 of file event.c.

const char* perf_event__name ( unsigned int  id)

Definition at line 28 of file event.c.

int perf_event__preprocess_sample ( const union perf_event self,
struct machine machine,
struct addr_location al,
struct perf_sample sample,
symbol_filter_t  filter 
)

Definition at line 857 of file event.c.

void perf_event__print_totals ( void  )
int perf_event__process ( struct perf_tool tool,
union perf_event event,
struct perf_sample sample,
struct machine machine 
)

Definition at line 753 of file event.c.

int perf_event__process_comm ( struct perf_tool tool,
union perf_event event,
struct perf_sample sample,
struct machine machine 
)
int perf_event__process_lost ( struct perf_tool tool,
union perf_event event,
struct perf_sample sample,
struct machine machine 
)
int perf_event__process_mmap ( struct perf_tool tool,
union perf_event event,
struct perf_sample sample,
struct machine machine 
)
int perf_event__process_task ( struct perf_tool tool,
union perf_event event,
struct perf_sample sample,
struct machine machine 
)
int perf_event__synthesize_kernel_mmap ( struct perf_tool tool,
perf_event__handler_t  process,
struct machine machine,
const char symbol_name 
)

Definition at line 448 of file event.c.

int perf_event__synthesize_modules ( struct perf_tool tool,
perf_event__handler_t  process,
struct machine machine 
)

Definition at line 251 of file event.c.

int perf_event__synthesize_sample ( union perf_event event,
u64  type,
const struct perf_sample sample,
bool  swapped 
)

Definition at line 1026 of file evsel.c.

int perf_event__synthesize_thread_map ( struct perf_tool tool,
struct thread_map threads,
perf_event__handler_t  process,
struct machine machine 
)

Definition at line 322 of file event.c.

int perf_event__synthesize_threads ( struct perf_tool tool,
perf_event__handler_t  process,
struct machine machine 
)

Definition at line 380 of file event.c.