H A D | pmu.c | 20 #include "pmu.h" 24 #include <util/pmu-bison.h> 25 #include <util/pmu-flex.h> 38 /* An event loaded from /sys/devices/<pmu>/events. */ 43 * An event loaded from a /sys/devices/<pmu>/identifier matched json 51 * pmu-events.c, created by parsing the pmu-events json files. 71 * differ from the PMU name as it won't have suffixes. 126 static int pmu_aliases_parse(struct perf_pmu *pmu); in perf_pmu__new_format() 169 static void perf_pmu_format__load(const struct perf_pmu *pmu, struc in perf_pmu_format__load() 167 perf_pmu_format__load(const struct perf_pmu * pmu,struct perf_pmu_format * format) perf_pmu_format__load() argument 193 perf_pmu__format_parse(struct perf_pmu * pmu,int dirfd,bool eager_load) perf_pmu__format_parse() argument 243 pmu_format(struct perf_pmu * pmu,int dirfd,const char * name,bool eager_load) pmu_format() argument 295 perf_pmu__parse_scale(struct perf_pmu * pmu,struct perf_pmu_alias * alias) perf_pmu__parse_scale() argument 331 perf_pmu__parse_unit(struct perf_pmu * pmu,struct perf_pmu_alias * alias) perf_pmu__parse_unit() argument 397 perf_pmu__parse_per_pkg(struct perf_pmu * pmu,struct perf_pmu_alias * alias) perf_pmu__parse_per_pkg() argument 402 perf_pmu__parse_snapshot(struct perf_pmu * pmu,struct perf_pmu_alias * alias) perf_pmu__parse_snapshot() argument 419 perf_pmu__del_aliases(struct perf_pmu * pmu) perf_pmu__del_aliases() argument 429 perf_pmu__find_alias(struct perf_pmu * pmu,const char * name,bool load) perf_pmu__find_alias() argument 484 read_alias_info(struct perf_pmu * pmu,struct perf_pmu_alias * alias) read_alias_info() argument 499 struct perf_pmu *pmu; global() member 529 perf_pmu__new_alias(struct perf_pmu * pmu,const char * name,const char * desc,const char * val,FILE * val_fd,const struct pmu_event * pe,enum event_source src) perf_pmu__new_alias() argument 633 __pmu_aliases_parse(struct perf_pmu * pmu,int events_dir_fd) __pmu_aliases_parse() argument 679 pmu_aliases_parse(struct perf_pmu * pmu) pmu_aliases_parse() argument 703 pmu_aliases_parse_eager(struct perf_pmu * pmu,int sysfs_fd) pmu_aliases_parse_eager() argument 759 struct perf_pmu pmu = {.name = pmu_name}; pmu_cpumask() local 820 perf_pmu__getcpuid(struct perf_pmu * pmu) perf_pmu__getcpuid() argument 854 pmu_deduped_name_len(const struct perf_pmu * pmu,const char * name,bool skip_duplicate_pmus) pmu_deduped_name_len() argument 985 struct perf_pmu *pmu = vdata; pmu_add_cpu_aliases_map_callback() local 996 pmu_add_cpu_aliases_table(struct perf_pmu * pmu,const struct pmu_events_table * table) pmu_add_cpu_aliases_table() argument 1001 pmu_add_cpu_aliases(struct perf_pmu * pmu) pmu_add_cpu_aliases() argument 1017 struct perf_pmu *pmu = vdata; pmu_add_sys_aliases_iter_fn() local 1036 pmu_add_sys_aliases(struct perf_pmu * pmu) pmu_add_sys_aliases() argument 1044 pmu_find_alias_name(struct perf_pmu * pmu,int dirfd) pmu_find_alias_name() argument 1067 pmu_max_precise(int dirfd,struct perf_pmu * pmu) pmu_max_precise() argument 1076 perf_pmu__arch_init(struct perf_pmu * pmu) perf_pmu__arch_init() argument 1085 struct perf_pmu *pmu; perf_pmu__lookup() local 1149 struct perf_pmu *pmu = zalloc(sizeof(*pmu)); perf_pmu__create_placeholder_core_pmu() local 1171 perf_pmu__is_fake(const struct perf_pmu * pmu) perf_pmu__is_fake() argument 1176 perf_pmu__warn_invalid_formats(struct perf_pmu * pmu) perf_pmu__warn_invalid_formats() argument 1202 struct perf_pmu *pmu; evsel__is_aux_event() local 1220 evsel__set_config_if_unset(struct perf_pmu * pmu,struct evsel * evsel,const char * config_name,u64 val) evsel__set_config_if_unset() argument 1252 perf_pmu__format_bits(struct perf_pmu * pmu,const char * name) perf_pmu__format_bits() argument 1267 perf_pmu__format_type(struct perf_pmu * pmu,const char * name) perf_pmu__format_type() argument 1365 pmu_config_term(const struct perf_pmu * pmu,struct perf_event_attr * attr,struct parse_events_term * term,struct parse_events_terms * head_terms,bool zero,struct parse_events_error * err) pmu_config_term() argument 1488 perf_pmu__config_terms(const struct perf_pmu * pmu,struct perf_event_attr * attr,struct parse_events_terms * terms,bool zero,struct parse_events_error * err) perf_pmu__config_terms() argument 1508 perf_pmu__config(struct perf_pmu * pmu,struct perf_event_attr * attr,struct parse_events_terms * head_terms,struct parse_events_error * err) perf_pmu__config() argument 1521 pmu_find_alias(struct perf_pmu * pmu,struct parse_events_term * term) pmu_find_alias() argument 1560 check_info_data(struct perf_pmu * pmu,struct perf_pmu_alias * alias,struct perf_pmu_info * info,struct parse_events_error * err,int column) check_info_data() argument 1607 perf_pmu__check_alias(struct perf_pmu * pmu,struct parse_events_terms * head_terms,struct perf_pmu_info * info,bool * rewrote_terms,struct parse_events_error * err) perf_pmu__check_alias() argument 1683 perf_pmu__find_event(struct perf_pmu * pmu,const char * event,void * state,pmu_event_callback cb) perf_pmu__find_event() argument 1707 perf_pmu__has_format(const struct perf_pmu * pmu,const char * name) perf_pmu__has_format() argument 1718 perf_pmu__for_each_format(struct perf_pmu * pmu,void * state,pmu_format_callback cb) perf_pmu__for_each_format() argument 1779 perf_pmu__supports_legacy_cache(const struct perf_pmu * pmu) perf_pmu__supports_legacy_cache() argument 1784 perf_pmu__auto_merge_stats(const struct perf_pmu * pmu) perf_pmu__auto_merge_stats() argument 1789 perf_pmu__have_event(struct perf_pmu * pmu,const char * name) perf_pmu__have_event() argument 1800 perf_pmu__num_events(struct perf_pmu * pmu) perf_pmu__num_events() argument 1824 format_alias(char * buf,int len,const struct perf_pmu * pmu,const struct perf_pmu_alias * alias,bool skip_duplicate_pmus) format_alias() argument 1852 perf_pmu__for_each_event(struct perf_pmu * pmu,bool skip_duplicate_pmus,void * state,pmu_event_callback cb) perf_pmu__for_each_event() argument 1924 pmu__name_match(const struct perf_pmu * pmu,const char * pmu_name) pmu__name_match() argument 1935 perf_pmu__is_software(const struct perf_pmu * pmu) perf_pmu__is_software() argument 1961 perf_pmu__open_file(const struct perf_pmu * pmu,const char * name) perf_pmu__open_file() argument 1972 perf_pmu__open_file_at(const struct perf_pmu * pmu,int dirfd,const char * name) perf_pmu__open_file_at() argument 1983 perf_pmu__scan_file(const struct perf_pmu * pmu,const char * name,const char * fmt,...) perf_pmu__scan_file() argument 2000 perf_pmu__scan_file_at(const struct perf_pmu * pmu,int dirfd,const char * name,const char * fmt,...) perf_pmu__scan_file_at() argument 2017 perf_pmu__file_exists(const struct perf_pmu * pmu,const char * name) perf_pmu__file_exists() argument 2051 perf_pmu__del_caps(struct perf_pmu * pmu) perf_pmu__del_caps() argument 2068 perf_pmu__caps_parse(struct perf_pmu * pmu) perf_pmu__caps_parse() argument 2129 perf_pmu__compute_config_masks(struct perf_pmu * pmu) perf_pmu__compute_config_masks() argument 2152 perf_pmu__warn_invalid_config(struct perf_pmu * pmu,__u64 config,const char * name,int config_num,const char * config_name) perf_pmu__warn_invalid_config() argument 2178 perf_pmu__match(const struct perf_pmu * pmu,const char * tok) perf_pmu__match() argument 2258 perf_pmu__delete(struct perf_pmu * pmu) perf_pmu__delete() argument 2272 perf_pmu__name_from_config(struct perf_pmu * pmu,u64 config) perf_pmu__name_from_config() argument [all...] |