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