Skip to content

Commit 2ae169c

Browse files
committed
Merge branch 'release/1.8.4'
2 parents d8bcf7f + a336d80 commit 2ae169c

13 files changed

Lines changed: 177 additions & 45 deletions

File tree

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Build system generated files
2+
Makefile
3+
Makefile.in
4+
aclocal.m4
5+
autom4te.cache/
6+
compile
7+
config.guess
8+
config.log
9+
config.status
10+
config.sub
11+
configure
12+
configure~
13+
depcomp
14+
install-sh
15+
libtool
16+
ltmain.sh
17+
missing
18+
m4/
19+
20+
# Build artifacts
21+
*.o
22+
*.lo
23+
*.la
24+
*.a
25+
*.so
26+
*.bin
27+
*.deps/
28+
*.dirstamp
29+
.deps/
30+
.libs/
31+
32+
# Source subdirectory build files
33+
source/**/Makefile
34+
source/**/Makefile.in
35+
source/**/*.deps/
36+
source/**/.libs/

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
44

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

7+
#### [1.8.4](https://github.com/rdkcentral/telemetry/compare/1.8.3...1.8.4)
8+
9+
- RDKEMW-15233 [SERXIONE-8445/XIONE-18418] Develop Support Branch Integration [`#295`](https://github.com/rdkcentral/telemetry/pull/295)
10+
- RDKB-63834: Reject and Remove Corrupted Config Files In Persistance [`#284`](https://github.com/rdkcentral/telemetry/pull/284)
11+
712
#### [1.8.3](https://github.com/rdkcentral/telemetry/compare/1.8.2...1.8.3)
813

14+
> 19 March 2026
15+
916
- RDKB-63722: Build fix for ssl crypto error in platforms with lower ssl version [`#291`](https://github.com/rdkcentral/telemetry/pull/291)
17+
- Changelog updates for 1.8.3 release [`cac6d7f`](https://github.com/rdkcentral/telemetry/commit/cac6d7f0182481bb1d1664bd0bc1afce9e429e25)
1018

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

source/bulkdata/reportprofiles.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ static void* reportOnDemand(void *input)
428428
if(!strncmp(action, ON_DEMAND_ACTION_UPLOAD, MAX_PROFILENAMES_LENGTH))
429429
{
430430
T2Info("Upload XCONF report on demand \n");
431-
set_logdemand(true);
432431
generateDcaReport(false, true);
433432
}
434433
else if(!strncmp(action, ON_DEMAND_ACTION_ABORT, MAX_PROFILENAMES_LENGTH))

source/scheduler/scheduler.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ static ActivationTimeoutCB activationTimeoutCb;
4444
static Vector *profileList = NULL;
4545
static pthread_mutex_t scMutex;
4646
static bool sc_initialized = false;
47-
static bool islogdemand = false;
47+
static bool isretainSeekmap = true;
4848

4949
static bool signalrecived_and_executing = true;
5050
static bool is_activation_time_out = false;
5151

52-
bool get_logdemand ()
52+
bool get_retainseekmap ()
5353
{
54-
T2Info(("get_logdemand ++in\n"));
55-
return islogdemand;
54+
T2Info(("get_retainseekmap ++in\n"));
55+
return isretainSeekmap;
5656
}
5757

58-
void set_logdemand (bool value)
58+
void set_retainseekmap (bool value)
5959
{
60-
T2Info(("set_logdemand ++in\n"));
61-
islogdemand = value;
60+
T2Info(("set_retainseekmap ++in\n"));
61+
isretainSeekmap = value;
6262
}
6363

6464
void freeSchedulerProfile(void *data)
@@ -297,14 +297,14 @@ void* TimeoutThread(void *arg)
297297

298298
if(minThresholdTime == 0)
299299
{
300-
if (get_logdemand() == true)
300+
if (get_retainseekmap() == true)
301301
{
302-
set_logdemand(false);
303-
timeoutNotificationCb(tProfile->name, false);
302+
timeoutNotificationCb(tProfile->name, false); // Passing clearseekvalue as false
304303
}
305304
else
306305
{
307-
timeoutNotificationCb(tProfile->name, true);
306+
set_retainseekmap(true); //After triggering LOG upload resetting the retainseekmap value to true so the next report generation doesn't affect
307+
timeoutNotificationCb(tProfile->name, true); //Passing clearseek value as true
308308
}
309309
if(tProfile->terminated)
310310
{

source/scheduler/scheduler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ T2ERROR unregisterProfileFromScheduler(const char* profileName);
6060

6161
T2ERROR SendInterruptToTimeoutThread(char* profileName);
6262

63-
bool get_logdemand();
63+
bool get_retainseekmap();
6464

65-
void set_logdemand(bool value);
65+
void set_retainseekmap(bool value);
6666

6767
#endif /* _SCHEDULER_H_ */

source/telemetry2_0.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,12 @@ void sig_handler(int sig, siginfo_t* info, void* uc)
181181
else if ( sig == SIGUSR1 || sig == LOG_UPLOAD )
182182
{
183183
T2Info(("LOG_UPLOAD received!\n"));
184-
set_logdemand(false);
184+
set_retainseekmap(false);
185185
ReportProfiles_Interrupt();
186186
}
187187
else if (sig == LOG_UPLOAD_ONDEMAND || sig == SIGIO)
188188
{
189189
T2Info(("LOG_UPLOAD_ONDEMAND received!\n"));
190-
set_logdemand(true);
191190
ReportProfiles_Interrupt();
192191
}
193192
else if(sig == SIGUSR2 || sig == EXEC_RELOAD)

source/test/bulkdata/SchedulerMock.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,22 @@ T2ERROR SendInterruptToTimeoutThread(char* profileName)
8585
return T2ERROR_SUCCESS;
8686
}
8787

88-
bool get_logdemand()
88+
bool get_retainseekmap()
8989
{
9090
if (g_schedulerMock)
9191
{
92-
return g_schedulerMock->get_logdemand();
92+
return g_schedulerMock->get_retainseekmap();
9393
}
9494

9595
// Fallback implementation for when mock is not set
9696
return false;
9797
}
9898

99-
void set_logdemand(bool value)
99+
void set_retainseekmap(bool value)
100100
{
101101
if (g_schedulerMock)
102102
{
103-
g_schedulerMock->set_logdemand(value);
103+
g_schedulerMock->set_retainseekmap(value);
104104
return;
105105
}
106106

source/test/bulkdata/SchedulerMock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class SchedulerMock
3535
MOCK_METHOD(T2ERROR, registerProfileWithScheduler, (const char* profileName, unsigned int timeInterval, unsigned int activationTimeout, bool deleteonTimout, bool repeat, bool reportOnUpdate, unsigned int firstReportingInterval, char *timeRef), ());
3636
MOCK_METHOD(T2ERROR, unregisterProfileFromScheduler, (const char* profileName), ());
3737
MOCK_METHOD(T2ERROR, SendInterruptToTimeoutThread, (char* profileName), ());
38-
MOCK_METHOD(bool, get_logdemand, (), ());
39-
MOCK_METHOD(void, set_logdemand, (bool value), ());
38+
MOCK_METHOD(bool, get_retainseekmap, (), ());
39+
MOCK_METHOD(void, set_retainseekmap, (bool value), ());
4040
MOCK_METHOD(int, getLapsedTime, (struct timespec *result, struct timespec *x, struct timespec *y), ());
4141
};
4242

source/test/bulkdata/profileTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,8 @@ TEST_F(ProfileTest, privacymode_do_not_share) {
823823
}
824824

825825
TEST_F(ProfileTest, generateDcaReport) {
826-
// generateDcaReport may call set_logdemand
827-
EXPECT_CALL(*g_schedulerMock, set_logdemand(_))
826+
// generateDcaReport may call set_retainseekmap
827+
EXPECT_CALL(*g_schedulerMock, set_retainseekmap(_))
828828
.Times(::testing::AtMost(2)); // Allow up to 2 calls
829829

830830
generateDcaReport(false, true);

source/test/mocks/FileioMock.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,22 @@ extern "C" int fprintf(FILE* stream, const char* format, ...) {
473473
va_end(args);
474474
return result;
475475
}
476+
477+
/* Intercept the FORTIFY_SOURCE-hardened variant of fprintf */
478+
extern "C" int __fprintf_chk(FILE* stream, int /*flag*/, const char* format, ...) {
479+
va_list args;
480+
va_start(args, format);
481+
int result = -1;
482+
483+
if (g_fileIOMock) {
484+
result = g_fileIOMock->fprintf(stream, format, args);
485+
}
486+
else {
487+
result = vfprintf(stream, format, args);
488+
}
489+
va_end(args);
490+
return result;
491+
}
476492
/*
477493
extern "C" CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...)
478494
{

0 commit comments

Comments
 (0)