intel_pt_pmu 22 tools/perf/arch/x86/util/auxtrace.c struct perf_pmu *intel_pt_pmu; intel_pt_pmu 28 tools/perf/arch/x86/util/auxtrace.c intel_pt_pmu = perf_pmu__find(INTEL_PT_PMU_NAME); intel_pt_pmu 32 tools/perf/arch/x86/util/auxtrace.c if (intel_pt_pmu && evsel->core.attr.type == intel_pt_pmu->type) intel_pt_pmu 48 tools/perf/arch/x86/util/intel-pt.c struct perf_pmu *intel_pt_pmu; intel_pt_pmu 115 tools/perf/arch/x86/util/intel-pt.c static int intel_pt_read_config(struct perf_pmu *intel_pt_pmu, const char *str, intel_pt_pmu 123 tools/perf/arch/x86/util/intel-pt.c mask = perf_pmu__format_bits(&intel_pt_pmu->format, str); intel_pt_pmu 128 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == intel_pt_pmu->type) { intel_pt_pmu 137 tools/perf/arch/x86/util/intel-pt.c static size_t intel_pt_psb_period(struct perf_pmu *intel_pt_pmu, intel_pt_pmu 144 tools/perf/arch/x86/util/intel-pt.c if (perf_pmu__scan_file(intel_pt_pmu, "caps/topa_multiple_entries", intel_pt_pmu 157 tools/perf/arch/x86/util/intel-pt.c err = intel_pt_read_config(intel_pt_pmu, "psb_period", evlist, &val); intel_pt_pmu 163 tools/perf/arch/x86/util/intel-pt.c pr_debug2("%s psb_period %zu\n", intel_pt_pmu->name, psb_period); intel_pt_pmu 183 tools/perf/arch/x86/util/intel-pt.c static u64 intel_pt_default_config(struct perf_pmu *intel_pt_pmu) intel_pt_pmu 194 tools/perf/arch/x86/util/intel-pt.c if (perf_pmu__scan_file(intel_pt_pmu, "caps/mtc", "%d", intel_pt_pmu 199 tools/perf/arch/x86/util/intel-pt.c if (perf_pmu__scan_file(intel_pt_pmu, "caps/mtc_periods", "%x", intel_pt_pmu 209 tools/perf/arch/x86/util/intel-pt.c if (perf_pmu__scan_file(intel_pt_pmu, "caps/psb_cyc", "%d", intel_pt_pmu 214 tools/perf/arch/x86/util/intel-pt.c if (perf_pmu__scan_file(intel_pt_pmu, "caps/psb_periods", "%x", intel_pt_pmu 224 tools/perf/arch/x86/util/intel-pt.c if (perf_pmu__scan_file(intel_pt_pmu, "format/pt", "%c", &c) == 1 && intel_pt_pmu 225 tools/perf/arch/x86/util/intel-pt.c perf_pmu__scan_file(intel_pt_pmu, "format/branch", "%c", &c) == 1) intel_pt_pmu 228 tools/perf/arch/x86/util/intel-pt.c pr_debug2("%s default config: %s\n", intel_pt_pmu->name, buf); intel_pt_pmu 230 tools/perf/arch/x86/util/intel-pt.c intel_pt_parse_terms(&intel_pt_pmu->format, buf, &config); intel_pt_pmu 259 tools/perf/arch/x86/util/intel-pt.c intel_pt_pmu_default_config(struct perf_pmu *intel_pt_pmu) intel_pt_pmu 267 tools/perf/arch/x86/util/intel-pt.c attr->config = intel_pt_default_config(intel_pt_pmu); intel_pt_pmu 269 tools/perf/arch/x86/util/intel-pt.c intel_pt_pmu->selectable = true; intel_pt_pmu 275 tools/perf/arch/x86/util/intel-pt.c struct perf_pmu *intel_pt_pmu) intel_pt_pmu 280 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == intel_pt_pmu->type) intel_pt_pmu 299 tools/perf/arch/x86/util/intel-pt.c const char *filter = intel_pt_find_filter(evlist, ptr->intel_pt_pmu); intel_pt_pmu 323 tools/perf/arch/x86/util/intel-pt.c struct perf_pmu *intel_pt_pmu = ptr->intel_pt_pmu; intel_pt_pmu 338 tools/perf/arch/x86/util/intel-pt.c intel_pt_parse_terms(&intel_pt_pmu->format, "tsc", &tsc_bit); intel_pt_pmu 339 tools/perf/arch/x86/util/intel-pt.c intel_pt_parse_terms(&intel_pt_pmu->format, "noretcomp", intel_pt_pmu 341 tools/perf/arch/x86/util/intel-pt.c intel_pt_parse_terms(&intel_pt_pmu->format, "mtc", &mtc_bit); intel_pt_pmu 342 tools/perf/arch/x86/util/intel-pt.c mtc_freq_bits = perf_pmu__format_bits(&intel_pt_pmu->format, intel_pt_pmu 344 tools/perf/arch/x86/util/intel-pt.c intel_pt_parse_terms(&intel_pt_pmu->format, "cyc", &cyc_bit); intel_pt_pmu 348 tools/perf/arch/x86/util/intel-pt.c if (perf_pmu__scan_file(intel_pt_pmu, "max_nonturbo_ratio", intel_pt_pmu 352 tools/perf/arch/x86/util/intel-pt.c filter = intel_pt_find_filter(session->evlist, ptr->intel_pt_pmu); intel_pt_pmu 374 tools/perf/arch/x86/util/intel-pt.c auxtrace_info->priv[INTEL_PT_PMU_TYPE] = intel_pt_pmu->type; intel_pt_pmu 478 tools/perf/arch/x86/util/intel-pt.c static int intel_pt_val_config_term(struct perf_pmu *intel_pt_pmu, intel_pt_pmu 488 tools/perf/arch/x86/util/intel-pt.c if (perf_pmu__scan_file(intel_pt_pmu, caps, "%llx", &valid) != 1) intel_pt_pmu 492 tools/perf/arch/x86/util/intel-pt.c perf_pmu__scan_file(intel_pt_pmu, supported, "%d", &ok) == 1 && !ok) intel_pt_pmu 497 tools/perf/arch/x86/util/intel-pt.c bits = perf_pmu__format_bits(&intel_pt_pmu->format, name); intel_pt_pmu 518 tools/perf/arch/x86/util/intel-pt.c static int intel_pt_validate_config(struct perf_pmu *intel_pt_pmu, intel_pt_pmu 531 tools/perf/arch/x86/util/intel-pt.c if (perf_pmu__scan_file(intel_pt_pmu, "format/pt", "%c", &c) == 1 && intel_pt_pmu 537 tools/perf/arch/x86/util/intel-pt.c err = intel_pt_val_config_term(intel_pt_pmu, "caps/cycle_thresholds", intel_pt_pmu 543 tools/perf/arch/x86/util/intel-pt.c err = intel_pt_val_config_term(intel_pt_pmu, "caps/mtc_periods", intel_pt_pmu 549 tools/perf/arch/x86/util/intel-pt.c return intel_pt_val_config_term(intel_pt_pmu, "caps/psb_periods", intel_pt_pmu 580 tools/perf/arch/x86/util/intel-pt.c struct perf_pmu *intel_pt_pmu = ptr->intel_pt_pmu; intel_pt_pmu 592 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == intel_pt_pmu->type) { intel_pt_pmu 620 tools/perf/arch/x86/util/intel-pt.c err = intel_pt_validate_config(intel_pt_pmu, intel_pt_evsel); intel_pt_pmu 626 tools/perf/arch/x86/util/intel-pt.c size_t psb_period = intel_pt_psb_period(intel_pt_pmu, evlist); intel_pt_pmu 697 tools/perf/arch/x86/util/intel-pt.c intel_pt_parse_terms(&intel_pt_pmu->format, "tsc", &tsc_bit); intel_pt_pmu 816 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == ptr->intel_pt_pmu->type) intel_pt_pmu 829 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == ptr->intel_pt_pmu->type) intel_pt_pmu 902 tools/perf/arch/x86/util/intel-pt.c psb_period = intel_pt_psb_period(ptr->intel_pt_pmu, ptr->evlist); intel_pt_pmu 1102 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == ptr->intel_pt_pmu->type) { intel_pt_pmu 1114 tools/perf/arch/x86/util/intel-pt.c struct perf_pmu *intel_pt_pmu = perf_pmu__find(INTEL_PT_PMU_NAME); intel_pt_pmu 1117 tools/perf/arch/x86/util/intel-pt.c if (!intel_pt_pmu) intel_pt_pmu 1131 tools/perf/arch/x86/util/intel-pt.c ptr->intel_pt_pmu = intel_pt_pmu;