Replicate global counters across all derived counters (#936)

Fix derived counters to have globals replicated across all architectures (that support them).
---------

Co-authored-by: Benjamin Welton <ben@amd.com>
This commit is contained in:
Benjamin Welton
2024-06-18 23:40:19 -07:00
committed by GitHub
parent 9364754e66
commit ab92bef1a4
4 changed files with 113 additions and 68 deletions
@@ -171,7 +171,7 @@ TEST(metrics, check_agent_valid)
if(other_gfx == gfx) continue;
for(const auto& metric : other_counters)
{
if(common_metrics.count(metric.id())) continue;
if(common_metrics.count(metric.id()) || !metric.special().empty()) continue;
EXPECT_EQ(counters::checkValidMetric(gfx, metric), false)
<< fmt::format("GFX {} has Metric {} but shouldn't", gfx, metric);
}