Lines Matching refs:perf
52 PanfrostDriver::create_available_counters(const PanfrostPerf &perf) in create_available_counters() argument
59 for (uint32_t gid = 0; gid < perf.perf->cfg->n_categories; ++gid) { in create_available_counters()
60 const auto &category = perf.perf->cfg->categories[gid]; in create_available_counters()
70 uint32_t id_within_group = find_id_within_group(cid, perf.perf->cfg); in create_available_counters()
75 struct panfrost_perf *perf = pan_driver.perf->perf; in create_available_counters() local
76 uint32_t id_within_group = find_id_within_group(c.id, perf->cfg); in create_available_counters()
77 const auto counter = &perf->cfg->categories[c.group].counters[id_within_group]; in create_available_counters()
78 return int64_t(panfrost_perf_counter_read(counter, perf)); in create_available_counters()
97 if (!perf) { in init_perfcnt()
98 perf = std::make_unique<PanfrostPerf>(*dev); in init_perfcnt()
101 std::tie(groups, counters) = create_available_counters(*perf); in init_perfcnt()
121 auto res = perf->enable(); in enable_perfcnt()
135 if (!check(perf->dump(), "Failed to dump performance counters")) { in dump_perfcnt()
152 perf->disable(); in disable_perfcnt()
153 perf.reset(); in disable_perfcnt()