Linux Perf
probe-event.h File Reference
#include <linux/compiler.h>
#include <stdbool.h>
#include "intlist.h"
#include "namespaces.h"
Include dependency graph for probe-event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  probe_conf
 
struct  probe_trace_point
 
struct  probe_trace_arg_ref
 
struct  probe_trace_arg
 
struct  probe_trace_event
 
struct  perf_probe_point
 
struct  perf_probe_arg_field
 
struct  perf_probe_arg
 
struct  perf_probe_event
 
struct  line_range
 
struct  variable_list
 

Macros

#define MAX_EVENT_INDEX   1024
 

Functions

int init_probe_symbol_maps (bool user_only)
 
void exit_probe_symbol_maps (void)
 
int parse_perf_probe_command (const char *cmd, struct perf_probe_event *pev)
 
int parse_probe_trace_command (const char *cmd, struct probe_trace_event *tev)
 
char * synthesize_perf_probe_command (struct perf_probe_event *pev)
 
char * synthesize_probe_trace_command (struct probe_trace_event *tev)
 
char * synthesize_perf_probe_arg (struct perf_probe_arg *pa)
 
char * synthesize_perf_probe_point (struct perf_probe_point *pp)
 
int perf_probe_event__copy (struct perf_probe_event *dst, struct perf_probe_event *src)
 
bool perf_probe_with_var (struct perf_probe_event *pev)
 
bool perf_probe_event_need_dwarf (struct perf_probe_event *pev)
 
void clear_perf_probe_event (struct perf_probe_event *pev)
 
void clear_probe_trace_event (struct probe_trace_event *tev)
 
int parse_line_range_desc (const char *cmd, struct line_range *lr)
 
void line_range__clear (struct line_range *lr)
 
int line_range__init (struct line_range *lr)
 
int add_perf_probe_events (struct perf_probe_event *pevs, int npevs)
 
int convert_perf_probe_events (struct perf_probe_event *pevs, int npevs)
 
int apply_perf_probe_events (struct perf_probe_event *pevs, int npevs)
 
int show_probe_trace_events (struct perf_probe_event *pevs, int npevs)
 
void cleanup_perf_probe_events (struct perf_probe_event *pevs, int npevs)
 
int del_perf_probe_events (struct strfilter *filter)
 
int show_perf_probe_event (const char *group, const char *event, struct perf_probe_event *pev, const char *module, bool use_stdout)
 
int show_perf_probe_events (struct strfilter *filter)
 
int show_line_range (struct line_range *lr, const char *module, struct nsinfo *nsi, bool user)
 
int show_available_vars (struct perf_probe_event *pevs, int npevs, struct strfilter *filter)
 
int show_available_funcs (const char *module, struct nsinfo *nsi, struct strfilter *filter, bool user)
 
void arch__fix_tev_from_maps (struct perf_probe_event *pev, struct probe_trace_event *tev, struct map *map, struct symbol *sym)
 
int e_snprintf (char *str, size_t size, const char *format,...) __printf(3
 
int copy_to_probe_trace_arg (struct probe_trace_arg *tvar, struct perf_probe_arg *pvar)
 
struct mapget_target_map (const char *target, struct nsinfo *nsi, bool user)
 
void arch__post_process_probe_trace_events (struct perf_probe_event *pev, int ntevs)
 

Variables

struct probe_conf probe_conf
 
bool probe_event_dry_run
 

Macro Definition Documentation

◆ MAX_EVENT_INDEX

#define MAX_EVENT_INDEX   1024

Definition at line 183 of file probe-event.h.

Function Documentation

◆ add_perf_probe_events()

int add_perf_probe_events ( struct perf_probe_event pevs,
int  npevs 
)

Definition at line 3411 of file probe-event.c.

Here is the call graph for this function:

◆ apply_perf_probe_events()

int apply_perf_probe_events ( struct perf_probe_event pevs,
int  npevs 
)

Definition at line 3379 of file probe-event.c.

Here is the call graph for this function:

◆ arch__fix_tev_from_maps()

void arch__fix_tev_from_maps ( struct perf_probe_event pev,
struct probe_trace_event tev,
struct map map,
struct symbol sym 
)

◆ arch__post_process_probe_trace_events()

void arch__post_process_probe_trace_events ( struct perf_probe_event pev,
int  ntevs 
)

◆ cleanup_perf_probe_events()

void cleanup_perf_probe_events ( struct perf_probe_event pevs,
int  npevs 
)

Definition at line 3394 of file probe-event.c.

Here is the call graph for this function:

◆ clear_perf_probe_event()

void clear_perf_probe_event ( struct perf_probe_event pev)

Definition at line 2183 of file probe-event.c.

Here is the call graph for this function:

◆ clear_probe_trace_event()

void clear_probe_trace_event ( struct probe_trace_event tev)

Definition at line 2282 of file probe-event.c.

Here is the call graph for this function:

◆ convert_perf_probe_events()

int convert_perf_probe_events ( struct perf_probe_event pevs,
int  npevs 
)

Definition at line 3312 of file probe-event.c.

Here is the call graph for this function:

◆ copy_to_probe_trace_arg()

int copy_to_probe_trace_arg ( struct probe_trace_arg tvar,
struct perf_probe_arg pvar 
)

Definition at line 3513 of file probe-event.c.

◆ del_perf_probe_events()

int del_perf_probe_events ( struct strfilter filter)

Definition at line 3429 of file probe-event.c.

Here is the call graph for this function:

◆ e_snprintf()

int e_snprintf ( char *  str,
size_t  size,
const char *  format,
  ... 
)

◆ exit_probe_symbol_maps()

void exit_probe_symbol_maps ( void  )

Definition at line 107 of file probe-event.c.

Here is the call graph for this function:

◆ get_target_map()

struct map* get_target_map ( const char *  target,
struct nsinfo nsi,
bool  user 
)

Definition at line 174 of file probe-event.c.

Here is the call graph for this function:

◆ init_probe_symbol_maps()

int init_probe_symbol_maps ( bool  user_only)

Definition at line 77 of file probe-event.c.

Here is the call graph for this function:

◆ line_range__clear()

void line_range__clear ( struct line_range lr)

Definition at line 1182 of file probe-event.c.

Here is the call graph for this function:

◆ line_range__init()

int line_range__init ( struct line_range lr)

Definition at line 1192 of file probe-event.c.

Here is the call graph for this function:

◆ parse_line_range_desc()

int parse_line_range_desc ( const char *  cmd,
struct line_range lr 
)

Definition at line 1234 of file probe-event.c.

Here is the call graph for this function:

◆ parse_perf_probe_command()

int parse_perf_probe_command ( const char *  cmd,
struct perf_probe_event pev 
)

Definition at line 1656 of file probe-event.c.

Here is the call graph for this function:

◆ parse_probe_trace_command()

int parse_probe_trace_command ( const char *  cmd,
struct probe_trace_event tev 
)

Definition at line 1724 of file probe-event.c.

Here is the call graph for this function:

◆ perf_probe_event__copy()

int perf_probe_event__copy ( struct perf_probe_event dst,
struct perf_probe_event src 
)

Definition at line 2254 of file probe-event.c.

Here is the call graph for this function:

◆ perf_probe_event_need_dwarf()

bool perf_probe_event_need_dwarf ( struct perf_probe_event pev)

Definition at line 1712 of file probe-event.c.

Here is the call graph for this function:

◆ perf_probe_with_var()

bool perf_probe_with_var ( struct perf_probe_event pev)

Definition at line 1699 of file probe-event.c.

Here is the call graph for this function:

◆ show_available_funcs()

int show_available_funcs ( const char *  module,
struct nsinfo nsi,
struct strfilter filter,
bool  user 
)

Definition at line 3464 of file probe-event.c.

Here is the call graph for this function:

◆ show_available_vars()

int show_available_vars ( struct perf_probe_event pevs,
int  npevs,
struct strfilter filter 
)

◆ show_line_range()

int show_line_range ( struct line_range lr,
const char *  module,
struct nsinfo nsi,
bool  user 
)

◆ show_perf_probe_event()

int show_perf_probe_event ( const char *  group,
const char *  event,
struct perf_probe_event pev,
const char *  module,
bool  use_stdout 
)

Definition at line 2459 of file probe-event.c.

Here is the call graph for this function:

◆ show_perf_probe_events()

int show_perf_probe_events ( struct strfilter filter)

Definition at line 2536 of file probe-event.c.

Here is the call graph for this function:

◆ show_probe_trace_events()

int show_probe_trace_events ( struct perf_probe_event pevs,
int  npevs 
)

Definition at line 3349 of file probe-event.c.

Here is the call graph for this function:

◆ synthesize_perf_probe_arg()

char* synthesize_perf_probe_arg ( struct perf_probe_arg pa)

Definition at line 1850 of file probe-event.c.

Here is the call graph for this function:

◆ synthesize_perf_probe_command()

char* synthesize_perf_probe_command ( struct perf_probe_event pev)

Definition at line 1928 of file probe-event.c.

Here is the call graph for this function:

◆ synthesize_perf_probe_point()

char* synthesize_perf_probe_point ( struct perf_probe_point pp)

Definition at line 1889 of file probe-event.c.

Here is the call graph for this function:

◆ synthesize_probe_trace_command()

char* synthesize_probe_trace_command ( struct probe_trace_event tev)

Definition at line 2015 of file probe-event.c.

Here is the call graph for this function:

Variable Documentation

◆ probe_conf

Definition at line 58 of file probe-event.c.

◆ probe_event_dry_run

bool probe_event_dry_run

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