aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/CommandHandlerRegistry.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2019-10-17 17:37:10 +0100
committerJim Flynn <jim.flynn@arm.com>2019-10-18 09:58:17 +0100
commit397043fa3d900430e9e0f6d328b76898f9613388 (patch)
treedc2cfbcff1a098881d05a97c3d96f4e902575953 /src/profiling/CommandHandlerRegistry.cpp
parent9ea7700bde128f2601d5b7d8849e96c0a08e15c6 (diff)
downloadarmnn-397043fa3d900430e9e0f6d328b76898f9613388.tar.gz
IVGCVSW-4002 Add FamilyId to CommandHandlerKey
Change-Id: I0bb0bf77da2bcd7f4746078c4ccee9acc98638a7 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/CommandHandlerRegistry.cpp')
-rw-r--r--src/profiling/CommandHandlerRegistry.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/profiling/CommandHandlerRegistry.cpp b/src/profiling/CommandHandlerRegistry.cpp
index bd9b318835..8070afe623 100644
--- a/src/profiling/CommandHandlerRegistry.cpp
+++ b/src/profiling/CommandHandlerRegistry.cpp
@@ -14,11 +14,14 @@ namespace armnn
namespace profiling
{
-void CommandHandlerRegistry::RegisterFunctor(CommandHandlerFunctor* functor, uint32_t packetId, uint32_t version)
+void CommandHandlerRegistry::RegisterFunctor(CommandHandlerFunctor* functor,
+ uint32_t familyId,
+ uint32_t packetId,
+ uint32_t version)
{
BOOST_ASSERT_MSG(functor, "Provided functor should not be a nullptr");
- CommandHandlerKey key(packetId, version);
+ CommandHandlerKey key(familyId, packetId, version);
registry[key] = functor;
}
@@ -26,12 +29,12 @@ void CommandHandlerRegistry::RegisterFunctor(CommandHandlerFunctor* functor)
{
BOOST_ASSERT_MSG(functor, "Provided functor should not be a nullptr");
- RegisterFunctor(functor, functor->GetPacketId(), functor->GetVersion());
+ RegisterFunctor(functor, functor->GetFamilyId(), functor->GetPacketId(), functor->GetVersion());
}
-CommandHandlerFunctor* CommandHandlerRegistry::GetFunctor(uint32_t packetId, uint32_t version) const
+CommandHandlerFunctor* CommandHandlerRegistry::GetFunctor(uint32_t familyId,uint32_t packetId, uint32_t version) const
{
- CommandHandlerKey key(packetId, version);
+ CommandHandlerKey key(familyId, packetId, version);
// Check that the requested key exists
if (registry.find(key) == registry.end())