|
49 | 49 | #include <platform/CHIPDeviceLayer.h>
|
50 | 50 | #include <string.h>
|
51 | 51 | #include <trace/trace.h>
|
| 52 | +#include <tracing/scope.h> |
52 | 53 |
|
53 | 54 | using namespace chip;
|
54 | 55 | using namespace ::chip::Transport;
|
@@ -408,6 +409,7 @@ bool emberAfOperationalCredentialsClusterRemoveFabricCallback(app::CommandHandle
|
408 | 409 | const Commands::RemoveFabric::DecodableType & commandData)
|
409 | 410 | {
|
410 | 411 | MATTER_TRACE_EVENT_SCOPE("RemoveFabric", "OperationalCredentials");
|
| 412 | + MATTER_TRACE_SCOPE(::chip::Tracing::Scope::OperationalCredentials_RemoveFabric); |
411 | 413 | auto & fabricBeingRemoved = commandData.fabricIndex;
|
412 | 414 |
|
413 | 415 | ChipLogProgress(Zcl, "OpCreds: Received a RemoveFabric Command for FabricIndex 0x%x",
|
@@ -468,6 +470,7 @@ bool emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(app::CommandH
|
468 | 470 | const Commands::UpdateFabricLabel::DecodableType & commandData)
|
469 | 471 | {
|
470 | 472 | MATTER_TRACE_EVENT_SCOPE("UpdateFabricLabel", "OperationalCredentials");
|
| 473 | + MATTER_TRACE_SCOPE(::chip::Tracing::Scope::OperationalCredentials_UpdateFabricLabel); |
471 | 474 | auto & label = commandData.label;
|
472 | 475 | auto ourFabricIndex = commandObj->GetAccessingFabricIndex();
|
473 | 476 | auto finalStatus = Status::Failure;
|
@@ -590,6 +593,7 @@ bool emberAfOperationalCredentialsClusterAddNOCCallback(app::CommandHandler * co
|
590 | 593 | const Commands::AddNOC::DecodableType & commandData)
|
591 | 594 | {
|
592 | 595 | MATTER_TRACE_EVENT_SCOPE("AddNOC", "OperationalCredentials");
|
| 596 | + MATTER_TRACE_SCOPE(::chip::Tracing::Scope::OperationalCredentials_AddNOC); |
593 | 597 | auto & NOCValue = commandData.NOCValue;
|
594 | 598 | auto & ICACValue = commandData.ICACValue;
|
595 | 599 | auto & adminVendorId = commandData.adminVendorId;
|
@@ -763,6 +767,7 @@ bool emberAfOperationalCredentialsClusterUpdateNOCCallback(app::CommandHandler *
|
763 | 767 | const Commands::UpdateNOC::DecodableType & commandData)
|
764 | 768 | {
|
765 | 769 | MATTER_TRACE_EVENT_SCOPE("UpdateNOC", "OperationalCredentials");
|
| 770 | + MATTER_TRACE_SCOPE(::chip::Tracing::Scope::OperationalCredentials_UpdateNOC); |
766 | 771 | auto & NOCValue = commandData.NOCValue;
|
767 | 772 | auto & ICACValue = commandData.ICACValue;
|
768 | 773 |
|
@@ -855,6 +860,7 @@ bool emberAfOperationalCredentialsClusterCertificateChainRequestCallback(
|
855 | 860 | const Commands::CertificateChainRequest::DecodableType & commandData)
|
856 | 861 | {
|
857 | 862 | MATTER_TRACE_EVENT_SCOPE("CertificateChainRequest", "OperationalCredentials");
|
| 863 | + MATTER_TRACE_SCOPE(::chip::Tracing::Scope::OperationalCredentials_CertificateChainRequest); |
858 | 864 | auto & certificateType = commandData.certificateType;
|
859 | 865 |
|
860 | 866 | CHIP_ERROR err = CHIP_NO_ERROR;
|
@@ -903,6 +909,7 @@ bool emberAfOperationalCredentialsClusterAttestationRequestCallback(app::Command
|
903 | 909 | const Commands::AttestationRequest::DecodableType & commandData)
|
904 | 910 | {
|
905 | 911 | MATTER_TRACE_EVENT_SCOPE("AttestationRequest", "OperationalCredentials");
|
| 912 | + MATTER_TRACE_SCOPE(::chip::Tracing::Scope::OperationalCredentials_AttestationRequest); |
906 | 913 | auto & attestationNonce = commandData.attestationNonce;
|
907 | 914 |
|
908 | 915 | auto finalStatus = Status::Failure;
|
@@ -999,6 +1006,7 @@ bool emberAfOperationalCredentialsClusterCSRRequestCallback(app::CommandHandler
|
999 | 1006 | const Commands::CSRRequest::DecodableType & commandData)
|
1000 | 1007 | {
|
1001 | 1008 | MATTER_TRACE_EVENT_SCOPE("CSRRequest", "OperationalCredentials");
|
| 1009 | + MATTER_TRACE_SCOPE(::chip::Tracing::Scope::OperationalCredentials_CSRRequest); |
1002 | 1010 | ChipLogProgress(Zcl, "OpCreds: Received a CSRRequest command");
|
1003 | 1011 |
|
1004 | 1012 | chip::Platform::ScopedMemoryBuffer<uint8_t> nocsrElements;
|
@@ -1134,6 +1142,7 @@ bool emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(
|
1134 | 1142 | const Commands::AddTrustedRootCertificate::DecodableType & commandData)
|
1135 | 1143 | {
|
1136 | 1144 | MATTER_TRACE_EVENT_SCOPE("AddTrustedRootCertificate", "OperationalCredentials");
|
| 1145 | + MATTER_TRACE_SCOPE(::chip::Tracing::Scope::OperationalCredentials_AddTrustedRootCertificate); |
1137 | 1146 |
|
1138 | 1147 | auto & fabricTable = Server::GetInstance().GetFabricTable();
|
1139 | 1148 | auto finalStatus = Status::Failure;
|
|
0 commit comments