Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/L1-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: L1 Unit Tests

on:
pull_request:
branches: [ develop ]
branches: [ develop, support/1.7.4 ]

env:
AUTOMATICS_UNAME: ${{ secrets.AUTOMATICS_UNAME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/L2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: L2 Integration Tests

on:
pull_request:
branches: [ develop ]
branches: [ develop, support/1.7.4 ]

env:
AUTOMATICS_UNAME: ${{ secrets.AUTOMATICS_UNAME }}
Expand Down
131 changes: 131 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,142 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [1.7.4v2](https://github.com/rdkcentral/telemetry/compare/1.9.5...1.7.4v2)

- RDKEMW-16851: [Cherry-pick #332] Fix for skipfrequency issue in top markers (#332) [`#391`](https://github.com/rdkcentral/telemetry/pull/391)
- Cherry-pick PRs 295, 299 Previous log fixes to 1.7.4 [`#340`](https://github.com/rdkcentral/telemetry/pull/340)
- Changelog updates for 1.7.4v1 release [`c6cdd1b`](https://github.com/rdkcentral/telemetry/commit/c6cdd1b6bfb700779df66d94fcc9d522abe926e6)

#### [1.9.5](https://github.com/rdkcentral/telemetry/compare/1.9.4...1.9.5)

> 11 June 2026

- RDKB-64847: Observed spike in load and CPU due to cpu_telemetry2_0 [`#383`](https://github.com/rdkcentral/telemetry/pull/383)
- Changelog updates for 1.9.5 release [`345cc22`](https://github.com/rdkcentral/telemetry/commit/345cc220dd9e366496b63adc061d4549a5da21f7)

#### [1.9.4](https://github.com/rdkcentral/telemetry/compare/1.9.3...1.9.4)

> 20 May 2026

- RDKEMW-18410: Xconf thread should wait Indefinitely for the NTP indicator [`9db3fba`](https://github.com/rdkcentral/telemetry/commit/9db3fba319b7854e128cdba25f1ee36a312b4a3b)
- Changelog updates for hotifx release 1.9.4 [`65e76ce`](https://github.com/rdkcentral/telemetry/commit/65e76ce1a771a4d44c9b52e0f4f76e467dd52b11)

#### [1.9.3](https://github.com/rdkcentral/telemetry/compare/1.9.2...1.9.3)

> 15 May 2026

- RDKEMW-18410: Xconf thread should wait for the NTP indicator for network connectivity [`#367`](https://github.com/rdkcentral/telemetry/pull/367)
- Changelog updates for hotifx release 1.9.3 [`15df0a2`](https://github.com/rdkcentral/telemetry/commit/15df0a22302942525308de78dd7e2213ed99b718)

#### [1.9.2](https://github.com/rdkcentral/telemetry/compare/1.9.1...1.9.2)

> 4 May 2026

- RDKB-64644: Potential Fix for SE051 ENGINE memory leak in telemetry HTTP pool [`#360`](https://github.com/rdkcentral/telemetry/pull/360)
- RDKEMW-15199:[SECVULN] Command injection via /opt/.telemetry/dca_temp… [`#355`](https://github.com/rdkcentral/telemetry/pull/355)
- Changelog updates for release 1.9.2 [`247ae04`](https://github.com/rdkcentral/telemetry/commit/247ae0464ce45a63c53705f3cc91bb2e16ffa92c)
- Changelog updates for release 1.9.2 [`5b6e065`](https://github.com/rdkcentral/telemetry/commit/5b6e0656dc612c571c5715bffb636565df3ed0f2)

#### [1.9.1](https://github.com/rdkcentral/telemetry/compare/1.9.0...1.9.1)

> 28 April 2026

- RDKB-64487: TSAN fixes for various issues [`#350`](https://github.com/rdkcentral/telemetry/pull/350)
- RDKB-64487: Code changes for thread hardening and safety under concurrent load [`#345`](https://github.com/rdkcentral/telemetry/pull/345)
- RDKB-64487: Code changes for Mutex locking and deadlock prevention [`#338`](https://github.com/rdkcentral/telemetry/pull/338)
- RDKEMW-16851: Fix for top log markers and the polling frequency [`#341`](https://github.com/rdkcentral/telemetry/pull/341)
- Adding agentic skills for code reviews [`#323`](https://github.com/rdkcentral/telemetry/pull/323)
- Changelog updates for 1.9.1 release [`1861d67`](https://github.com/rdkcentral/telemetry/commit/1861d67be43018e5dcc10f61bebd3d31d08244ec)
- Changelog updates for 1.9.1 release [`4675135`](https://github.com/rdkcentral/telemetry/commit/467513553c6fac2d63cf730ca4980c595ff355db)

#### [1.9.0](https://github.com/rdkcentral/telemetry/compare/1.8.8...1.9.0)

> 8 April 2026

- RDK-60291: RDK Coverity Defect Resolution [`#319`](https://github.com/rdkcentral/telemetry/pull/319)
- Changelog updates for 1.9.0 release [`c3239a5`](https://github.com/rdkcentral/telemetry/commit/c3239a5c22ad9da475210a2448777563c6b84390)

#### [1.8.8](https://github.com/rdkcentral/telemetry/compare/1.8.7...1.8.8)

> 7 April 2026

- DELIA-70280 : [Xione DE] rbus self-deadlock in XConf privacy mode fetch causing ~188s T2 init delay [`#303`](https://github.com/rdkcentral/telemetry/pull/303)
- Changelog updates for release 1.8.8 [`6e32097`](https://github.com/rdkcentral/telemetry/commit/6e32097d4d38675b49b7a400de3e65dc42c12334)

#### [1.8.7](https://github.com/rdkcentral/telemetry/compare/1.8.6...1.8.7)

> 3 April 2026

- RDKB-64163: Fix race conditions with config reload [`#312`](https://github.com/rdkcentral/telemetry/pull/312)
- Changelog updates for 1.8.7 release [`8254efd`](https://github.com/rdkcentral/telemetry/commit/8254efd57fe0c4f0a84dbbdfac2ab18e4f80d021)

#### [1.8.6](https://github.com/rdkcentral/telemetry/compare/1.8.5...1.8.6)

> 1 April 2026

- RDKB-64163: Fix for reporting hang with heavy parallel operations [`#307`](https://github.com/rdkcentral/telemetry/pull/307)
- Changelog updates for 1.8.6 release [`d876cce`](https://github.com/rdkcentral/telemetry/commit/d876cce0e4f7ded4831dd8a7542cf79e0035dc4d)

#### [1.8.5](https://github.com/rdkcentral/telemetry/compare/1.8.4...1.8.5)

> 24 March 2026

- RDKEMW-15233:[SERXIONE-8445/XIONE-18418] Develop Support Branch Integ… [`#299`](https://github.com/rdkcentral/telemetry/pull/299)
- Changelog updates for release 1.8.5 [`3d23970`](https://github.com/rdkcentral/telemetry/commit/3d2397047795a728ab1a22ce439c4743cf8a84e1)

#### [1.8.4](https://github.com/rdkcentral/telemetry/compare/1.8.3...1.8.4)

> 23 March 2026

- RDKEMW-15233 [SERXIONE-8445/XIONE-18418] Develop Support Branch Integration [`#295`](https://github.com/rdkcentral/telemetry/pull/295)
- RDKB-63834: Reject and Remove Corrupted Config Files In Persistance [`#284`](https://github.com/rdkcentral/telemetry/pull/284)
- Changelog updates for 1.8.4 release [`a336d80`](https://github.com/rdkcentral/telemetry/commit/a336d80cd23321dee1defba998cb6460b3474b31)

#### [1.8.3](https://github.com/rdkcentral/telemetry/compare/1.8.2...1.8.3)

> 19 March 2026

- RDKB-63722: Build fix for ssl crypto error in platforms with lower ssl version [`#291`](https://github.com/rdkcentral/telemetry/pull/291)
- Changelog updates for 1.8.3 release [`cac6d7f`](https://github.com/rdkcentral/telemetry/commit/cac6d7f0182481bb1d1664bd0bc1afce9e429e25)

#### [1.8.2](https://github.com/rdkcentral/telemetry/compare/1.8.1...1.8.2)

> 18 March 2026

- RDKB-63722:Analyze and fix/mitigate memory leaks from curl_easy_perform calls [`#287`](https://github.com/rdkcentral/telemetry/pull/287)
- Agentic development and maintenance support [`#278`](https://github.com/rdkcentral/telemetry/pull/278)
- RDKEMW-10467: Fix Invalid time values caused by drift [`#212`](https://github.com/rdkcentral/telemetry/pull/212)
- Changelog updates for release 1.8.2 [`28b5426`](https://github.com/rdkcentral/telemetry/commit/28b542668e814411234f0a0d594e5c5d35b98319)

#### [1.8.1](https://github.com/rdkcentral/telemetry/compare/1.8.0...1.8.1)

> 27 February 2026

- RDK-60476: Reduce default connection pool size to 1 [`#260`](https://github.com/rdkcentral/telemetry/pull/260)
- RDK-60805: Adding L1 unit test cases for reportprofiles [`#265`](https://github.com/rdkcentral/telemetry/pull/265)
- Changelog updates for 1.8.1 release [`074a1d3`](https://github.com/rdkcentral/telemetry/commit/074a1d32e33924ce0f39e7cd7aad5bd6750376d4)

#### [1.8.0](https://github.com/rdkcentral/telemetry/compare/1.7.4...1.8.0)

> 6 February 2026

- RDK-60312: Remove fork calls for curl transactions [`#242`](https://github.com/rdkcentral/telemetry/pull/242)
- RDK-60533: L1 unit test cases - protocol/rbusMethod and http [`#241`](https://github.com/rdkcentral/telemetry/pull/241)
- RDKB-63348 : Fix duplicate close calls on file descriptor [`#251`](https://github.com/rdkcentral/telemetry/pull/251)
- RDK-60519: Adding L1 unit test cases - dcautil & ccspinterface [`#240`](https://github.com/rdkcentral/telemetry/pull/240)
- RDK-60519: Adding L1 unit test cases for scheduler [`#238`](https://github.com/rdkcentral/telemetry/pull/238)
- RDK-60304: Adding L1 unit test cases to improve code coverage [`#237`](https://github.com/rdkcentral/telemetry/pull/237)
- RDK-60303: Adding L1 unit test cases to improve code coverage for protocol/http [`#231`](https://github.com/rdkcentral/telemetry/pull/231)
- Changelog updates for 1.8.0 release [`8440d51`](https://github.com/rdkcentral/telemetry/commit/8440d513de7bdfda8331e44099f22b82c8cf669e)

#### [1.7.4](https://github.com/rdkcentral/telemetry/compare/1.7.3...1.7.4)

> 16 January 2026

- DELIA-69767: Replace popen() to prevent FD closures and improve logging [`#225`](https://github.com/rdkcentral/telemetry/pull/225)
- RDK-60072: Adding L1 unit test cases to improve code coverage [`#234`](https://github.com/rdkcentral/telemetry/pull/234)
- RDK-60072: Adding L1 unit test cases to improve code coverage [`#219`](https://github.com/rdkcentral/telemetry/pull/219)
- Changelog updates for 1.7.4 release [`f94578f`](https://github.com/rdkcentral/telemetry/commit/f94578fadfd969e832df3d2f1856c6e59ec1a905)

#### [1.7.3](https://github.com/rdkcentral/telemetry/compare/1.7.2...1.7.3)

Expand Down
8 changes: 4 additions & 4 deletions source/bulkdata/reportprofiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ static void* reportOnDemand(void *input)
if(!strncmp(action, ON_DEMAND_ACTION_UPLOAD, MAX_PROFILENAMES_LENGTH))
{
T2Info("Upload XCONF report on demand \n");
set_logdemand(true);
generateDcaReport(false, true);
}
else if(!strncmp(action, ON_DEMAND_ACTION_ABORT, MAX_PROFILENAMES_LENGTH))
Expand Down Expand Up @@ -486,6 +485,10 @@ T2ERROR initReportProfiles()
drop_root();
#endif

//Initialise the properties file RDK-58222
T2InitProperties();
T2Info("Initializing properties\n");

#if defined (PRIVACYMODES_CONTROL)
// Define scope
{
Expand Down Expand Up @@ -640,9 +643,6 @@ T2ERROR initReportProfiles()

}

//Initialise the properties file RDK-58222
T2InitProperties();
T2Info("InitProperties is successful\n");

// This indicates telemetry has started
FILE* bootFlag = NULL ;
Expand Down
25 changes: 23 additions & 2 deletions source/dcautil/dca.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,16 @@ int processTopPattern(char* profileName, Vector* topMarkerList, int profileExec
{
continue;
}
if (topMarkerObj->cpuValue)
{
free(topMarkerObj->cpuValue);
topMarkerObj->cpuValue = NULL;
}
if (topMarkerObj->memValue)
{
free(topMarkerObj->memValue);
topMarkerObj->memValue = NULL;
}
int tmp_skip_interval, is_skip_param;
tmp_skip_interval = topMarkerObj->skipFreq;
if(tmp_skip_interval <= 0)
Expand Down Expand Up @@ -310,6 +320,16 @@ int processTopPattern(char* profileName, Vector* topMarkerList, int profileExec
continue;
}

if (topMarkerObj->cpuValue)
{
free(topMarkerObj->cpuValue);
topMarkerObj->cpuValue = NULL;
}
if (topMarkerObj->memValue)
{
free(topMarkerObj->memValue);
topMarkerObj->memValue = NULL;
}

// If the skip frequency is set, skip the marker processing for this interval
int tmp_skip_interval, is_skip_param;
Expand Down Expand Up @@ -380,7 +400,7 @@ static int getLogSeekValue(hash_map_t *logSeekMap, const char *name, long *seek_
T2Debug("logSeekMap is null .. Setting seek value to 0 \n");
*seek_value = 0 ;
}

T2Debug("seekvalue for file %s is %ld\n", name, *seek_value);
T2Debug("%s --out \n", __FUNCTION__);
return rc;
}
Expand Down Expand Up @@ -525,6 +545,7 @@ static int getCountPatternMatch(FileDescriptor* fileDescriptor, GrepMarker* mark

// Using the union for efficient memory handling
marker->u.count = count;
T2Debug("Count Marker: Marker = %s Value %d\n", marker->markerName, marker->u.count);
T2Debug("%s --out\n", __FUNCTION__);
return 0;
}
Expand Down Expand Up @@ -635,7 +656,7 @@ static int getAbsolutePatternMatch(FileDescriptor* fileDescriptor, GrepMarker* m
{
marker->u.markerValue = result;
}

T2Debug("Absolute Marker: Marker = %s Value %s\n", marker->markerName, marker->u.markerValue);
T2Debug("%s --out\n", __FUNCTION__);
return 0;
}
Expand Down
Loading