Fix for ATT codeobj table initialization (#290)
* Fix for codeobj HSA table order * Fix tests * Format --------- Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
This commit is contained in:
committed by
GitHub
parent
c9ca876b79
commit
b21452ec11
@@ -112,7 +112,7 @@ TEST(thread_trace, resource_creation)
|
||||
|
||||
tracer.resource_init();
|
||||
|
||||
for(auto& [_, agenttracer] : tracer.agents)
|
||||
for(auto& [_, agenttracer] : tracer.get_agents())
|
||||
{
|
||||
agenttracer->load_codeobj(1, 0x1000, 0x1000);
|
||||
agenttracer->load_codeobj(2, 0x3000, 0x1000);
|
||||
@@ -222,7 +222,7 @@ TEST(thread_trace, perfcounters_configure_test)
|
||||
auto* tracer = context->dispatch_thread_trace.get();
|
||||
|
||||
ASSERT_NE(tracer, nullptr);
|
||||
for(auto& [id, agent] : tracer->agents)
|
||||
for(auto& [id, agent] : tracer->get_agents())
|
||||
{
|
||||
ASSERT_EQ(agent->params.perfcounter_ctrl, 1);
|
||||
ASSERT_EQ(agent->params.perfcounters.size(), 3);
|
||||
|
||||
Reference in New Issue
Block a user