| /linux/tools/perf/pmu-events/ |
| H A D | empty-pmu-events.c | 17 struct compact_pmu_event pmu_name; 5190 .pmu_name = { 0 /* default_core\000 */ }, 5195 .pmu_name = { 123513 /* software\000 */ }, 5200 .pmu_name = { 125068 /* tool\000 */ }, 5246 .pmu_name = { 0 /* default_core\000 */ }, 5294 .pmu_name = { 0 /* default_core\000 */ }, 5299 .pmu_name = { 126979 /* hisi_sccl,ddrc\000 */ }, 5304 .pmu_name = { 127342 /* hisi_sccl,l3c\000 */ }, 5309 .pmu_name = { 127064 /* uncore_cbox\000 */ }, 5314 .pmu_name 18 struct compact_pmu_event pmu_name; global() member 2990 const char *pmu_name = &big_c_string[table_pmu->pmu_name.offset]; pmu_events_table__for_each_event() local 3013 const char *pmu_name = &big_c_string[table_pmu->pmu_name.offset]; pmu_events_table__find_event() local 3035 const char *pmu_name = &big_c_string[table_pmu->pmu_name.offset]; pmu_events_table__num_events() local 3133 const char *pmu_name = &big_c_string[table_pmu->pmu_name.offset]; pmu_metrics_table__find_metric() local 3207 const char *pmu_name = &big_c_string[pmu_events__common[i].pmu_name.offset]; map_for_pmu() local 3234 const char *pmu_name = &big_c_string[table_pmu->pmu_name.offset]; perf_pmu__find_events_table() local [all...] |
| H A D | jevents.py | 556 pmu_name = event.pmu.replace(',', '_') 558 f'static const struct compact_pmu_event {_pending_events_tblname}_{pmu_name}[] = {{\n') 561 pmus.add((event.pmu, pmu_name)) 573 pmu_name = f"{pmu}\\000" 577 \t\t.pmu_name = {{ {_bcs.offsets[pmu_name]} /* {pmu_name} */ }}, 616 pmu_name = metric.pmu.replace(',', '_') 618 f'static const struct compact_pmu_event {_pending_metrics_tblname}_{pmu_name}[] = {{\n') 621 pmus.add((metric.pmu, pmu_name)) [all...] |
| /linux/tools/perf/tests/ |
| H A D | pmu-events.c | 38 const char *pmu_name; 328 char const *pmu_name) in compare_alias_to_test_event() 335 pmu_name, alias->name, event->name); in compare_alias_to_test_event() 341 pmu_name, alias->desc, event->desc); in compare_alias_to_test_event() 347 pmu_name, alias->long_desc, in compare_alias_to_test_event() 354 pmu_name, alias->topic, event->topic); in compare_alias_to_test_event() 360 pmu_name, alias->str, test_event->event.event); in compare_alias_to_test_event() 366 pmu_name, alias->str, test_event->alias_long_desc); in compare_alias_to_test_event() 370 if (!is_same(alias->pmu_name, test_event->event.pmu) && in compare_alias_to_test_event() 371 !is_same(alias->pmu_name, "default_cor in compare_alias_to_test_event() 37 const char *pmu_name; global() member 327 compare_alias_to_test_event(struct pmu_event_info * alias,struct perf_pmu_test_event const * test_event,char const * pmu_name) compare_alias_to_test_event() argument 500 __test_core_pmu_event_aliases(const char * pmu_name,int * count) __test_core_pmu_event_aliases() argument [all...] |
| /linux/tools/perf/util/ |
| H A D | pmu.c | 78 * @pmu_name: The name copied from the json struct pmu_event. This can 81 char *pmu_name; member 94 * <sysfs>/bus/event_source/devices/<pmu_name>/events/<name>.per-pkg or 100 * <sysfs>/bus/event_source/devices/<pmu_name>/events/<name>.snapshot 366 static bool perf_pmu__parse_event_source_bool(const char *pmu_name, const char *event_name, in perf_pmu__parse_event_source_bool() argument 377 scnprintf(path + len, sizeof(path) - len, "%s/events/%s.%s", pmu_name, event_name, suffix); in perf_pmu__parse_event_source_bool() 417 zfree(&alias->pmu_name); in perf_pmu_free_alias() 564 const char *long_desc = NULL, *topic = NULL, *unit = NULL, *pmu_name = NULL; in perf_pmu__new_alias() local 579 pmu_name = pe->pmu; in perf_pmu__new_alias() 630 alias->pmu_name in perf_pmu__new_alias() 809 pmu_cpumask(int dirfd,const char * pmu_name,bool is_core) pmu_cpumask() argument 913 perf_pmu__match_wildcard(const char * pmu_name,const char * tok) perf_pmu__match_wildcard() argument 958 perf_pmu__match_ignoring_suffix_uncore(const char * pmu_name,const char * tok) perf_pmu__match_ignoring_suffix_uncore() argument 988 perf_pmu__match_wildcard_uncore(const char * pmu_name,const char * to_match) perf_pmu__match_wildcard_uncore() argument 1199 wellknown_pmu_type(const char * pmu_name) wellknown_pmu_type() argument 1202 const char *pmu_name; wellknown_pmu_type() member 2628 const char *pmu_name = names[i]; perf_pmu__wildcard_match() local 2674 perf_pmu__pathname_scnprintf(char * buf,size_t size,const char * pmu_name,const char * filename) perf_pmu__pathname_scnprintf() argument 2685 perf_pmu__pathname_fd(int dirfd,const char * pmu_name,const char * filename,int flags) perf_pmu__pathname_fd() argument [all...] |
| H A D | env.h | 44 char *pmu_name; 55 char *pmu_name; 232 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name, 235 bool perf_env__has_pmu_mapping(struct perf_env *env, const char *pmu_name); 43 char *pmu_name; global() member 54 char *pmu_name; global() member
|
| H A D | env.c | 288 zfree(&env->hybrid_nodes[i].pmu_name); in perf_env__exit() 297 zfree(&env->pmu_caps[i].pmu_name); in perf_env__exit() 609 pmu_caps[i].pmu_name = strdup(pmu->name); in normalize_arch() 610 if (!pmu_caps[i].pmu_name) { in normalize_arch() 626 zfree(&pmu_caps[i].pmu_name); in perf_env__arch() 962 bool perf_env__has_pmu_mapping(struct perf_env *env, const char *pmu_name) 971 if (strcmp(pmu_mapping, pmu_name) == 0) 980 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name, 988 if (!pmu_name || !cap) 999 if (!strcmp(pmu_name, "cp 732 perf_env__has_pmu_mapping(struct perf_env * env,const char * pmu_name) perf_env__has_pmu_mapping() argument 750 perf_env__find_pmu_cap(struct perf_env * env,const char * pmu_name,const char * cap) perf_env__find_pmu_cap() argument [all...] |
| H A D | print-events.h | 15 const char *pmu_name, u32 pmu_type, 29 const char *pmu_name);
|
| H A D | pmus.c | 539 const char *pmu_name; in cmp_sevent() 568 ret = strcmp(as->pmu_name ?: "", bs->pmu_name ?: ""); 584 return strcmp(a->pmu_name, b->pmu_name) == 0; in perf_pmus__print_pmu_events__callback() 614 COPY_STR(pmu_name); in perf_pmus__print_pmu_events() 665 aliases[j].pmu_name, in perf_pmus__print_pmu_events() 683 zfree(&aliases[j].pmu_name); in build_format_string() 770 /*pmu_name=*/NULL, in perf_pmus__have_event() 521 const char *pmu_name; global() member
|
| H A D | pmu.h | 230 const char *pmu_name; member 341 const char *pmu_name, const char *filename); 343 int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags);
|
| H A D | cputopo.c | 444 node->pmu_name = strdup(pmu->name); in load_hybrid_node() 445 if (!node->pmu_name) in load_hybrid_node() 466 zfree(&node->pmu_name); in load_hybrid_node() 501 zfree(&tp->nodes[i].pmu_name); in hybrid_topology__delete()
|
| H A D | print-events.c | 118 /*pmu_name=*/NULL, in print_sdt_events() 196 const char *pmu_name; member 279 me->pmu_name = pm->pmu; in metricgroup__add_to_mep_groups_callback() 311 me->pmu_name); in metricgroup__print() 326 /*pmu_name=*/NULL, in print_events() 341 /*pmu_name=*/NULL, in print_events()
|
| H A D | cputopo.h | 50 char *pmu_name; member
|
| H A D | tp_pmu.c | 117 .pmu_name = args->pmu->name, in for_each_event_cb()
|
| H A D | header.c | 1083 ret = do_write_string(ff, n->pmu_name); in write_bpf_btf() 2075 fprintf(fp, "# %s cpu list : %s\n", n->pmu_name, n->cpus); in perf_attr_check() 2442 static void __print_pmu_caps(FILE *fp, int nr_caps, char **caps, char *pmu_name) in print_cpu_domain_info() 2448 fprintf(fp, "# %s pmu capabilities: not available\n", pmu_name); in print_cpu_domain_info() 2452 fprintf(fp, "# %s pmu capabilities: ", pmu_name); in print_cpu_domain_info() 2476 pmu_caps->pmu_name); in __event_process_build_id() 3670 n->pmu_name = do_read_string(ff); in process_cpu_domain_info() 3671 if (!n->pmu_name) in process_cpu_domain_info() 3685 free(nodes[i].pmu_name); in process_cpu_domain_info() 4040 pmu_caps[i].pmu_name in perf_session__do_write_header() 2271 __print_pmu_caps(FILE * fp,int nr_caps,char ** caps,char * pmu_name) __print_pmu_caps() argument [all...] |
| H A D | evsel.c | 4675 const char *name, *pmu_name, *config; 4692 pmu_name = counter->pmu->name; 4695 len = pmu_name_len_no_suffix(pmu_name); 4697 if (!strncmp(name, pmu_name, len)) { 4705 ret = asprintf(&new_name, "%s/%s", pmu_name, config + 1); 4710 ret = asprintf(&new_name, "%s/%.*s/%s", pmu_name, len, name, config + 2); 4713 ret = asprintf(&new_name, "%s/%.*s,%s", pmu_name, len, name, config + 1); 4721 ret = asprintf(&new_name, "%s/%.*s/%s", pmu_name, len, name, config + 1); 4724 ret = asprintf(&new_name, "%s/%s/", pmu_name, name); 4323 const char *name, *pmu_name, *config; evsel__uniquify_counter() local
|
| H A D | drm_pmu.c | 285 .pmu_name = pmu->name, in drm_pmu__for_each_event()
|
| H A D | hwmon_pmu.c | 515 .pmu_name = pmu->name, in hwmon_pmu__for_each_event()
|
| /linux/tools/perf/ |
| H A D | builtin-list.c | 119 const char *pmu_name, u32 pmu_type, in default_print_event() argument 133 if (print_state->pmu_glob && (!pmu_name || !strglobmatch(pmu_name, print_state->pmu_glob))) in default_print_event() 179 if (pmu_name && strcmp(pmu_name, "default_core")) { in default_print_event() 184 desc, pmu_name); in default_print_event() 207 const char *pmu_name __maybe_unused) in default_print_metric() 364 const char *pmu_name, u32 pmu_type __maybe_unused, in json_print_event() argument 380 (!pmu_name || !strglobmatch(pmu_name, print_state->common.pmu_glob))) in json_print_event() 396 if (pmu_name) { in json_print_event() 397 fix_escape_fprintf(fp, &buf, "\t\"Unit\": \"%S\"", pmu_name); in json_print_event() 462 const char *pmu_name) in json_print_metric() argument [all …]
|
| /linux/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
| H A D | misc.c | 524 * First check for presence of pmu_name from in check_for_generic_compat_pmu() 531 char pmu_name[256]; in check_for_compat_mode() 533 memset(pmu_name, 0, sizeof(pmu_name)); in check_for_compat_mode() 534 if (read_sysfs_file("bus/event_source/devices/cpu/caps/pmu_name", in check_for_compat_mode() 535 pmu_name, sizeof(pmu_name)) < 0) in check_for_compat_mode() 538 if (!strcmp(pmu_name, "ISAv3")) 515 char pmu_name[256]; check_for_generic_compat_pmu() local
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-event_source-devices-caps | 8 expose information specific to a PMU, say pmu_name, so that 13 like Intel is pmu_name, which exposes underlying CPU name known 18 /sys/bus/event_source/devices/cpu/caps/pmu_name:POWER9
|
| /linux/arch/sparc/kernel/ |
| H A D | cpu.c | 37 const char *pmu_name; member 58 { .psr_vers = ver, .name = _name, .pmu_name = _pmu_name } 290 sparc_pmu_type = cpu->pmu_name; in set_cpu_and_fpu()
|
| /linux/tools/perf/python/ |
| H A D | ilist.py | 445 pmu_name = pmu.name().lower() 446 pmu_node = pmus.add(pmu_name) 455 data=PmuEvent(pmu_name, e)) 457 pmu_node.add_leaf(e, data=PmuEvent(pmu_name, e))
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_pmu.c | 490 char pmu_name[PMU_NAME_SIZE]; in init_pmu_entry_by_type_and_add() local 544 snprintf(pmu_name, PMU_NAME_SIZE, "%s_%d", pmu_entry->pmu_file_prefix, in init_pmu_entry_by_type_and_add() 547 ret = perf_pmu_register(&pmu_entry->pmu, pmu_name, -1); in init_pmu_entry_by_type_and_add()
|
| /linux/tools/perf/Documentation/ |
| H A D | perf.data-file-format.txt | 220 struct perf_header_string pmu_name; 400 cpu pmu capabilities: branches=32, max_precise=3, pmu_name=icelake 422 char pmu_name[]; 446 char pmu_name[];
|
| /linux/arch/x86/events/intel/ |
| H A D | uncore.c | 887 void uncore_get_alias_name(char *pmu_name, struct intel_uncore_pmu *pmu) in uncore_get_alias_name() argument 892 sprintf(pmu_name, "uncore_type_%u", type->type_id); in uncore_get_alias_name() 894 sprintf(pmu_name, "uncore_type_%u_%d", in uncore_get_alias_name()
|