Lines Matching refs:cs_etm_pmu
39 struct perf_pmu *cs_etm_pmu; member
66 struct perf_pmu *cs_etm_pmu; in cs_etm_set_context_id() local
73 cs_etm_pmu = ptr->cs_etm_pmu; in cs_etm_set_context_id()
81 err = perf_pmu__scan_file(cs_etm_pmu, path, "%x", &val); in cs_etm_set_context_id()
102 contextid = perf_pmu__format_bits(&cs_etm_pmu->format, in cs_etm_set_context_id()
150 struct perf_pmu *cs_etm_pmu; in cs_etm_set_timestamp() local
156 cs_etm_pmu = ptr->cs_etm_pmu; in cs_etm_set_timestamp()
164 err = perf_pmu__scan_file(cs_etm_pmu, path, "%x", &val); in cs_etm_set_timestamp()
300 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu; in cs_etm_recording_options() local
314 if (evsel->core.attr.type == cs_etm_pmu->type) { in cs_etm_recording_options()
332 ret = cs_etm_set_sink_attr(cs_etm_pmu, cs_etm_evsel); in cs_etm_recording_options()
465 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu; in cs_etm_get_config() local
470 if (evsel->core.attr.type == cs_etm_pmu->type) { in cs_etm_get_config()
578 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu; in cs_etm_is_etmv4() local
583 scan = perf_pmu__scan_file(cs_etm_pmu, path, "%x", &val); in cs_etm_is_etmv4()
619 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu; in cs_etm_is_ete() local
620 int trcdevarch = cs_etm_get_ro(cs_etm_pmu, cpu, metadata_etmv4_ro[CS_ETE_TRCDEVARCH]); in cs_etm_is_ete()
632 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu; in cs_etm_save_etmv4_header() local
639 data[CS_ETMV4_TRCIDR0] = cs_etm_get_ro(cs_etm_pmu, cpu, in cs_etm_save_etmv4_header()
641 data[CS_ETMV4_TRCIDR1] = cs_etm_get_ro(cs_etm_pmu, cpu, in cs_etm_save_etmv4_header()
643 data[CS_ETMV4_TRCIDR2] = cs_etm_get_ro(cs_etm_pmu, cpu, in cs_etm_save_etmv4_header()
645 data[CS_ETMV4_TRCIDR8] = cs_etm_get_ro(cs_etm_pmu, cpu, in cs_etm_save_etmv4_header()
647 data[CS_ETMV4_TRCAUTHSTATUS] = cs_etm_get_ro(cs_etm_pmu, cpu, in cs_etm_save_etmv4_header()
659 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu; in cs_etm_get_metadata() local
667 cs_etm_get_ro(cs_etm_pmu, cpu, in cs_etm_get_metadata()
689 cs_etm_get_ro(cs_etm_pmu, cpu, in cs_etm_get_metadata()
692 cs_etm_get_ro(cs_etm_pmu, cpu, in cs_etm_get_metadata()
721 struct perf_pmu *cs_etm_pmu = ptr->cs_etm_pmu; in cs_etm_info_fill() local
747 type = cs_etm_pmu->type; in cs_etm_info_fill()
777 if (evsel->core.attr.type == ptr->cs_etm_pmu->type) in cs_etm_snapshot_start()
790 if (evsel->core.attr.type == ptr->cs_etm_pmu->type) in cs_etm_snapshot_finish()
812 struct perf_pmu *cs_etm_pmu; in cs_etm_record_init() local
815 cs_etm_pmu = perf_pmu__find(CORESIGHT_ETM_PMU_NAME); in cs_etm_record_init()
817 if (!cs_etm_pmu) { in cs_etm_record_init()
828 ptr->cs_etm_pmu = cs_etm_pmu; in cs_etm_record_init()
829 ptr->itr.pmu = cs_etm_pmu; in cs_etm_record_init()