Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
parse-events.h File Reference
#include <linux/list.h>
#include <stdbool.h>
#include "types.h"
#include <linux/perf_event.h>

Go to the source code of this file.

Data Structures

struct  tracepoint_path
 
struct  parse_events__term
 
struct  parse_events_data__events
 
struct  parse_events_data__terms
 

Macros

#define EVENTS_HELP_MAX   (128*1024)
 

Enumerations

enum  { PARSE_EVENTS__TERM_TYPE_NUM, PARSE_EVENTS__TERM_TYPE_STR }
 
enum  {
  PARSE_EVENTS__TERM_TYPE_USER, PARSE_EVENTS__TERM_TYPE_CONFIG, PARSE_EVENTS__TERM_TYPE_CONFIG1, PARSE_EVENTS__TERM_TYPE_CONFIG2,
  PARSE_EVENTS__TERM_TYPE_NAME, PARSE_EVENTS__TERM_TYPE_SAMPLE_PERIOD, PARSE_EVENTS__TERM_TYPE_BRANCH_SAMPLE_TYPE
}
 

Functions

struct tracepoint_pathtracepoint_id_to_path (u64 config)
 
bool have_tracepoints (struct list_head *evlist)
 
const charevent_type (int type)
 
int parse_events_option (const struct option *opt, const char *str, int unset)
 
int parse_events (struct perf_evlist *evlist, const char *str, int unset)
 
int parse_events_terms (struct list_head *terms, const char *str)
 
int parse_filter (const struct option *opt, const char *str, int unset)
 
int parse_events__is_hardcoded_term (struct parse_events__term *term)
 
int parse_events__term_num (struct parse_events__term **_term, int type_term, char *config, u64 num)
 
int parse_events__term_str (struct parse_events__term **_term, int type_term, char *config, char *str)
 
int parse_events__term_clone (struct parse_events__term **new, struct parse_events__term *term)
 
void parse_events__free_terms (struct list_head *terms)
 
int parse_events__modifier_event (struct list_head *list, char *str, bool add)
 
int parse_events__modifier_group (struct list_head *list, char *event_mod)
 
int parse_events_name (struct list_head *list, char *name)
 
int parse_events_add_tracepoint (struct list_head **list, int *idx, char *sys, char *event)
 
int parse_events_add_numeric (struct list_head **list, int *idx, u32 type, u64 config, struct list_head *head_config)
 
int parse_events_add_cache (struct list_head **list, int *idx, char *type, char *op_result1, char *op_result2)
 
int parse_events_add_breakpoint (struct list_head **list, int *idx, void *ptr, char *type)
 
int parse_events_add_pmu (struct list_head **list, int *idx, char *pmu, struct list_head *head_config)
 
void parse_events__set_leader (char *name, struct list_head *list)
 
void parse_events_update_lists (struct list_head *list_event, struct list_head *list_all)
 
void parse_events_error (void *data, void *scanner, char const *msg)
 
int parse_events__test (void)
 
void print_events (const char *event_glob, bool name_only)
 
void print_events_type (u8 type)
 
void print_tracepoint_events (const char *subsys_glob, const char *event_glob, bool name_only)
 
int print_hwcache_events (const char *event_glob, bool name_only)
 
int is_valid_tracepoint (const char *event_string)
 
int valid_debugfs_mount (const char *debugfs)
 

Macro Definition Documentation

#define EVENTS_HELP_MAX   (128*1024)

Definition at line 37 of file parse-events.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
PARSE_EVENTS__TERM_TYPE_NUM 
PARSE_EVENTS__TERM_TYPE_STR 

Definition at line 39 of file parse-events.h.

anonymous enum
Enumerator:
PARSE_EVENTS__TERM_TYPE_USER 
PARSE_EVENTS__TERM_TYPE_CONFIG 
PARSE_EVENTS__TERM_TYPE_CONFIG1 
PARSE_EVENTS__TERM_TYPE_CONFIG2 
PARSE_EVENTS__TERM_TYPE_NAME 
PARSE_EVENTS__TERM_TYPE_SAMPLE_PERIOD 
PARSE_EVENTS__TERM_TYPE_BRANCH_SAMPLE_TYPE 

Definition at line 44 of file parse-events.h.

Function Documentation

const char* event_type ( int  type)

Definition at line 220 of file parse-events.c.

bool have_tracepoints ( struct list_head evlist)

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

int is_valid_tracepoint ( const char event_string)

Definition at line 929 of file parse-events.c.

int parse_events ( struct perf_evlist evlist,
const char str,
int  unset 
)

Definition at line 809 of file parse-events.c.

void parse_events__free_terms ( struct list_head terms)

Definition at line 1152 of file parse-events.c.

int parse_events__is_hardcoded_term ( struct parse_events__term term)

Definition at line 1096 of file parse-events.c.

int parse_events__modifier_event ( struct list_head list,
char str,
bool  add 
)

Definition at line 725 of file parse-events.c.

int parse_events__modifier_group ( struct list_head list,
char event_mod 
)

Definition at line 610 of file parse-events.c.

void parse_events__set_leader ( char name,
struct list_head list 
)

Definition at line 616 of file parse-events.c.

int parse_events__term_clone ( struct parse_events__term **  new,
struct parse_events__term term 
)

Definition at line 1145 of file parse-events.c.

int parse_events__term_num ( struct parse_events__term **  _term,
int  type_term,
char config,
u64  num 
)

Definition at line 1131 of file parse-events.c.

int parse_events__term_str ( struct parse_events__term **  _term,
int  type_term,
char config,
char str 
)

Definition at line 1138 of file parse-events.c.

int parse_events__test ( void  )

Definition at line 1027 of file parse-events-test.c.

int parse_events_add_breakpoint ( struct list_head **  list,
int idx,
void ptr,
char type 
)

Definition at line 468 of file parse-events.c.

int parse_events_add_cache ( struct list_head **  list,
int idx,
char type,
char op_result1,
char op_result2 
)

Definition at line 298 of file parse-events.c.

int parse_events_add_numeric ( struct list_head **  list,
int idx,
u32  type,
u64  config,
struct list_head head_config 
)

Definition at line 549 of file parse-events.c.

int parse_events_add_pmu ( struct list_head **  list,
int idx,
char pmu,
struct list_head head_config 
)

Definition at line 582 of file parse-events.c.

int parse_events_add_tracepoint ( struct list_head **  list,
int idx,
char sys,
char event 
)

Definition at line 414 of file parse-events.c.

void parse_events_error ( void data,
void scanner,
char const msg 
)
int parse_events_name ( struct list_head list,
char name 
)

Definition at line 753 of file parse-events.c.

int parse_events_option ( const struct option opt,
const char str,
int  unset 
)

Definition at line 835 of file parse-events.c.

int parse_events_terms ( struct list_head terms,
const char str 
)

Definition at line 791 of file parse-events.c.

void parse_events_update_lists ( struct list_head list_event,
struct list_head list_all 
)

Definition at line 625 of file parse-events.c.

int parse_filter ( const struct option opt,
const char str,
int  unset 
)

Definition at line 842 of file parse-events.c.

void print_events ( const char event_glob,
bool  name_only 
)

Definition at line 1058 of file parse-events.c.

void print_events_type ( u8  type)

Definition at line 984 of file parse-events.c.

int print_hwcache_events ( const char event_glob,
bool  name_only 
)

Definition at line 992 of file parse-events.c.

void print_tracepoint_events ( const char subsys_glob,
const char event_glob,
bool  name_only 
)

Definition at line 879 of file parse-events.c.

struct tracepoint_path* tracepoint_id_to_path ( u64  config)
read

Definition at line 152 of file parse-events.c.

int valid_debugfs_mount ( const char debugfs)