Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
803 changes: 803 additions & 0 deletions T2_Transport_Decoupling_Design_Document.md

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions source/bulkdata/profile.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:

Check failure on line 3 in source/bulkdata/profile.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'source/bulkdata/profile.c' (Match: rdk/components/generic/telemetry/rdk/components/generic/telemetry/1, 1565 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/telemetry/+archive/RDKB-RELEASE-TEST-DUNFELL-1.tar.gz, file: source/bulkdata/profile.c)

Check failure on line 3 in source/bulkdata/profile.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'source/bulkdata/profile.c' (Match: rdk/components/generic/telemetry/rdk/components/generic/telemetry/2102, 1565 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/telemetry/+archive/rdk-dev-2102.tar.gz, file: source/bulkdata/profile.c)
*
* Copyright 2019 RDK Management
*
Expand Down Expand Up @@ -1060,6 +1060,20 @@
eMarker = (EventMarker *)Vector_At(profile->eMarkerList, emIndex);
addT2EventMarker(eMarker->markerName, eMarker->compName, profile->name, eMarker->skipFreq);
}
#if 1
T2Info("Creating component-specific message queues after marker map update\n");
if (t2_daemon_create_component_queues() == T2ERROR_SUCCESS)
{
T2Info("Component-specific message queues created successfully\n");

// Broadcast initial marker lists to all component queues
// t2_daemon_mq_broadcast_markers_to_component("ALL");
}
else
{
T2Error("Failed to create component-specific message queues\n");
}
#endif
if(registerProfileWithScheduler(profile->name, profile->reportingInterval, profile->activationTimeoutPeriod, profile->deleteonTimeout, true, profile->reportOnUpdate, profile->firstReportingInterval, profile->timeRef) != T2ERROR_SUCCESS)
{
profile->enable = false;
Expand Down Expand Up @@ -1101,6 +1115,20 @@
}
}
pthread_mutex_unlock(&plMutex);
#if 1
T2Info("Creating component-specific message queues after marker map update\n");
if (t2_daemon_create_component_queues() == T2ERROR_SUCCESS)
{
T2Info("Component-specific message queues created successfully\n");

// Broadcast initial marker lists to all component queues
// t2_daemon_mq_broadcast_markers_to_component("ALL");
}
else
{
T2Error("Failed to create component-specific message queues\n");
}
#endif
T2Debug("%s --out\n", __FUNCTION__);
}

Expand Down
4 changes: 4 additions & 0 deletions source/bulkdata/t2markers.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:

Check failure on line 3 in source/bulkdata/t2markers.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'source/bulkdata/t2markers.c' (Match: rdk/components/generic/telemetry/rdk/components/generic/telemetry/1, 325 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/telemetry/+archive/RDKB-RELEASE-TEST-DUNFELL-1.tar.gz, file: source/bulkdata/t2markers.c)
*
* Copyright 2019 RDK Management
*
Expand Down Expand Up @@ -265,14 +265,17 @@
*/
void getComponentMarkerList(const char* compName, void **markerList)
{
T2Info("%s, %d\n", __func__, __LINE__);
Vector *compMarkers = NULL;
if(T2ERROR_SUCCESS == Vector_Create(&compMarkers))
{
uint32_t index = 0;

T2Info("%s, %d\n", __func__, __LINE__);
pthread_mutex_lock(&t2MarkersMutex);
for (; index < hash_map_count(markerCompMap); index++)
{
T2Info("%s, %d\n", __func__, __LINE__);
T2Marker *t2Marker = (T2Marker *)hash_map_lookup(markerCompMap, index);
if(t2Marker != NULL && !strcmp(t2Marker->componentName, compName))
{
Expand All @@ -287,6 +290,7 @@
T2Error("Unable to create Vector for Component Markers :: Malloc failure\n");
return ;
}
T2Info("%s, %d\n", __func__, __LINE__);
return;
}

Expand Down
Loading
Loading