|
struct perf_evsel - event selector
- evlist this evsel is in, if it is in one. - To insert it into evlist->entries or in other list_heads, say in the event parsing routines.
so that when showing results in tools such as 'perf stat', we show the name used, not some alias. : the position of the event id (PERF_SAMPLE_ID or PERF_SAMPLE_IDENTIFIER) in a sample event i.e. in the array of struct sample_event : the position (counting backwards) of the event id (PERF_SAMPLE_ID or PERF_SAMPLE_IDENTIFIER) in a non-sample event i.e. if sample_id_all is used there is an id sample appended to non-sample events : And what is in its containing unnamed union are tool specific
|
#define | PERF_EVSEL__MAX_ALIASES 8 |
|
#define | perf_evsel__set_sample_bit(evsel, bit) __perf_evsel__set_sample_bit(evsel, PERF_SAMPLE_##bit) |
|
#define | perf_evsel__reset_sample_bit(evsel, bit) __perf_evsel__reset_sample_bit(evsel, PERF_SAMPLE_##bit) |
|
#define | perf_evsel__match(evsel, t, c) |
|
#define | perf_evsel__cmp(a, b) |
|
#define | EVSEL__PRINT_IP (1<<0) |
|
#define | EVSEL__PRINT_SYM (1<<1) |
|
#define | EVSEL__PRINT_DSO (1<<2) |
|
#define | EVSEL__PRINT_SYMOFFSET (1<<3) |
|
#define | EVSEL__PRINT_ONELINE (1<<4) |
|
#define | EVSEL__PRINT_SRCLINE (1<<5) |
|
#define | EVSEL__PRINT_UNKNOWN_AS_ADDR (1<<6) |
|
#define | EVSEL__PRINT_CALLCHAIN_ARROW (1<<7) |
|
#define | EVSEL__PRINT_SKIP_IGNORED (1<<8) |
|
#define | for_each_group_member(_evsel, _leader) |
|
typedef int(* | attr__fprintf_f) (FILE *, const char *, const char *, void *) |
|
struct perf_missing_features | perf_missing_features |
|
const char * | perf_evsel__hw_cache [PERF_COUNT_HW_CACHE_MAX][PERF_EVSEL__MAX_ALIASES] |
|
const char * | perf_evsel__hw_cache_op [PERF_COUNT_HW_CACHE_OP_MAX][PERF_EVSEL__MAX_ALIASES] |
|
const char * | perf_evsel__hw_cache_result [PERF_COUNT_HW_CACHE_RESULT_MAX][PERF_EVSEL__MAX_ALIASES] |
|
const char * | perf_evsel__hw_names [PERF_COUNT_HW_MAX] |
|
const char * | perf_evsel__sw_names [PERF_COUNT_SW_MAX] |
|
static struct cpu_map * | perf_evsel__cpus (struct perf_evsel *evsel) |
|
static int | perf_evsel__nr_cpus (struct perf_evsel *evsel) |
|
void | perf_counts_values__scale (struct perf_counts_values *count, bool scale, s8 *pscaled) |
|
void | perf_evsel__compute_deltas (struct perf_evsel *evsel, int cpu, int thread, struct perf_counts_values *count) |
|
int | perf_evsel__object_config (size_t object_size, int(*init)(struct perf_evsel *evsel), void(*fini)(struct perf_evsel *evsel)) |
|
struct perf_evsel * | perf_evsel__new_idx (struct perf_event_attr *attr, int idx) |
|
static struct perf_evsel * | perf_evsel__new (struct perf_event_attr *attr) |
|
struct perf_evsel * | perf_evsel__newtp_idx (const char *sys, const char *name, int idx) |
|
static struct perf_evsel * | perf_evsel__newtp (const char *sys, const char *name) |
|
struct perf_evsel * | perf_evsel__new_cycles (bool precise) |
|
struct event_format * | event_format__new (const char *sys, const char *name) |
|
void | perf_evsel__init (struct perf_evsel *evsel, struct perf_event_attr *attr, int idx) |
|
void | perf_evsel__exit (struct perf_evsel *evsel) |
|
void | perf_evsel__delete (struct perf_evsel *evsel) |
|
void | perf_evsel__config (struct perf_evsel *evsel, struct record_opts *opts, struct callchain_param *callchain) |
|
void | perf_evsel__config_callchain (struct perf_evsel *evsel, struct record_opts *opts, struct callchain_param *callchain) |
|
int | __perf_evsel__sample_size (u64 sample_type) |
|
void | perf_evsel__calc_id_pos (struct perf_evsel *evsel) |
|
bool | perf_evsel__is_cache_op_valid (u8 type, u8 op) |
|
int | __perf_evsel__hw_cache_type_op_res_name (u8 type, u8 op, u8 result, char *bf, size_t size) |
|
const char * | perf_evsel__name (struct perf_evsel *evsel) |
|
const char * | perf_evsel__group_name (struct perf_evsel *evsel) |
|
int | perf_evsel__group_desc (struct perf_evsel *evsel, char *buf, size_t size) |
|
int | perf_evsel__alloc_id (struct perf_evsel *evsel, int ncpus, int nthreads) |
|
void | perf_evsel__close_fd (struct perf_evsel *evsel) |
|
void | __perf_evsel__set_sample_bit (struct perf_evsel *evsel, enum perf_event_sample_format bit) |
|
void | __perf_evsel__reset_sample_bit (struct perf_evsel *evsel, enum perf_event_sample_format bit) |
|
void | perf_evsel__set_sample_id (struct perf_evsel *evsel, bool use_sample_identifier) |
|
int | perf_evsel__set_filter (struct perf_evsel *evsel, const char *filter) |
|
int | perf_evsel__append_tp_filter (struct perf_evsel *evsel, const char *filter) |
|
int | perf_evsel__append_addr_filter (struct perf_evsel *evsel, const char *filter) |
|
int | perf_evsel__apply_filter (struct perf_evsel *evsel, const char *filter) |
|
int | perf_evsel__enable (struct perf_evsel *evsel) |
|
int | perf_evsel__disable (struct perf_evsel *evsel) |
|
int | perf_evsel__open_per_cpu (struct perf_evsel *evsel, struct cpu_map *cpus) |
|
int | perf_evsel__open_per_thread (struct perf_evsel *evsel, struct thread_map *threads) |
|
int | perf_evsel__open (struct perf_evsel *evsel, struct cpu_map *cpus, struct thread_map *threads) |
|
void | perf_evsel__close (struct perf_evsel *evsel) |
|
void * | perf_evsel__rawptr (struct perf_evsel *evsel, struct perf_sample *sample, const char *name) |
|
u64 | perf_evsel__intval (struct perf_evsel *evsel, struct perf_sample *sample, const char *name) |
|
static char * | perf_evsel__strval (struct perf_evsel *evsel, struct perf_sample *sample, const char *name) |
|
u64 | format_field__intval (struct format_field *field, struct perf_sample *sample, bool needs_swap) |
|
struct format_field * | perf_evsel__field (struct perf_evsel *evsel, const char *name) |
|
static bool | perf_evsel__match2 (struct perf_evsel *e1, struct perf_evsel *e2) |
|
int | perf_evsel__read (struct perf_evsel *evsel, int cpu, int thread, struct perf_counts_values *count) |
|
int | perf_evsel__read_counter (struct perf_evsel *evsel, int cpu, int thread) |
|
int | __perf_evsel__read_on_cpu (struct perf_evsel *evsel, int cpu, int thread, bool scale) |
|
static int | perf_evsel__read_on_cpu (struct perf_evsel *evsel, int cpu, int thread) |
|
static int | perf_evsel__read_on_cpu_scaled (struct perf_evsel *evsel, int cpu, int thread) |
|
int | perf_evsel__parse_sample (struct perf_evsel *evsel, union perf_event *event, struct perf_sample *sample) |
|
int | perf_evsel__parse_sample_timestamp (struct perf_evsel *evsel, union perf_event *event, u64 *timestamp) |
|
static struct perf_evsel * | perf_evsel__next (struct perf_evsel *evsel) |
|
static struct perf_evsel * | perf_evsel__prev (struct perf_evsel *evsel) |
|
static bool | perf_evsel__is_group_leader (const struct perf_evsel *evsel) |
|
static bool | perf_evsel__is_group_event (struct perf_evsel *evsel) |
|
bool | perf_evsel__is_function_event (struct perf_evsel *evsel) |
|
static bool | perf_evsel__is_bpf_output (struct perf_evsel *evsel) |
|
int | perf_evsel__fprintf (struct perf_evsel *evsel, struct perf_attr_details *details, FILE *fp) |
|
int | sample__fprintf_callchain (struct perf_sample *sample, int left_alignment, unsigned int print_opts, struct callchain_cursor *cursor, FILE *fp) |
|
int | sample__fprintf_sym (struct perf_sample *sample, struct addr_location *al, int left_alignment, unsigned int print_opts, struct callchain_cursor *cursor, FILE *fp) |
|
bool | perf_evsel__fallback (struct perf_evsel *evsel, int err, char *msg, size_t msgsize) |
|
int | perf_evsel__open_strerror (struct perf_evsel *evsel, struct target *target, int err, char *msg, size_t size) |
|
static int | perf_evsel__group_idx (struct perf_evsel *evsel) |
|
static bool | perf_evsel__has_branch_callstack (const struct perf_evsel *evsel) |
|
static bool | evsel__has_callchain (const struct perf_evsel *evsel) |
|
int | perf_event_attr__fprintf (FILE *fp, struct perf_event_attr *attr, attr__fprintf_f attr__fprintf, void *priv) |
|
struct perf_env * | perf_evsel__env (struct perf_evsel *evsel) |
|