-
Notifications
You must be signed in to change notification settings - Fork 18
RDKCOM-5420: TELEMETRY-2 Dynamic telemetry markers for Dynamic Tables in Telemetry #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
189d09f to
84cfa9e
Compare
|
@shibu-kv Kindly help with more details on coverity scan failed |
84cfa9e to
90aafc3
Compare
|
@onkar-panchare1 Thank you for the contribution. Formatter configs are already on the project - https://github.com/rdkcentral/telemetry/blob/develop/.astylerc |
shibu-kv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting to incorporate few changes outlined ingeneric comments.
90aafc3 to
489d36b
Compare
Hi @shibu-kv |
489d36b to
d129169
Compare
|
Changes looks good. Waiting for the CI workflows results. |
26090f3 to
0c74757
Compare
0c74757 to
859639c
Compare
Coverity Issue - Data race conditionAccessing "profile->cachedReportList" without holding lock "_Profile.reuseThreadMutex". Elsewhere, "_Profile.cachedReportList" is written to with "_Profile.reuseThreadMutex" held 5 out of 7 times. Medium Impact, CWE-366 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Data race conditionAccessing "profile->grepSeekProfile->execCounter" without holding lock "plMutex". Elsewhere, "_GrepSeekProfile.execCounter" is written to with "plMutex" held 2 out of 2 times. Medium Impact, CWE-366 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
| T2Debug("%s : reportTimestamp = %d\n", __FUNCTION__, rtformat); | ||
| //CID 337454: Explicit null dereferenced (FORWARD_NULL) ;CID 337448: Explicit null dereferenced (FORWARD_NULL) | ||
| if (content != NULL && header != NULL) | ||
| if (content != NULL && header != NULL && index_flag == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverity issue no longer present as of: undefined
Show issue
Coverity Issue - Pointer to local outside scope
Using "header", which points to an out-of-scope variable "basePath".
High Impact, CWE-562
RETURN_LOCAL
859639c to
1f66006
Compare
Coverity Issue - Use after freePassing freed pointer "header" as an argument to "T2Log". High Impact, CWE-416 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
1f66006 to
8bf495f
Compare
| T2Debug("[[Added parameter:%s]]\n", header); | ||
| } | ||
| if (content) { | ||
| free(content); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverity Issue - Free of array-typed value
"free" frees incorrect pointer "content".
High Impact, CWE-590
BAD_FREE
8bf495f to
d83f2cf
Compare
| T2Error("%s Error in adding parameter to profile %s \n", __FUNCTION__, profile->name); | ||
| if (content) | ||
| { | ||
| free(content); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverity Issue - Free of array-typed value
"free" frees incorrect pointer "content".
High Impact, CWE-590
BAD_FREE
Description: Introduced marker type DataModelTable for dynamic tables in telemetry. Enhanced T2 agent to resolve and collect data from all instances of multi-instance object tables when dynamic markers are configured. Added logic to parse DataModelTable, filter markers based on telemetry profile configuration, and encode them in telemetry reports after collection, ensuring telemetry reports include per-instance data for configured dynamic markers. Added support for an "index" parameter in configuration to restrict data collection to specific indexes if required. Reason for change: Enable telemetry to capture dynamic, per-instance data from tables (e.g., Host table, Wi-Fi associated devices) where indexes are not fixed, ensuring richer and more flexible telemetry collection. Signed-off-by: onkar.panchare1 <onkar.panchare@telekom-digital.com>
Description:
Introduced marker type DataModelTable for dynamic tables in telemetry.
Enhanced T2 agent to resolve and collect data from all instances of multi-instance object tables when dynamic markers are configured.
Added logic to parse DataModelTable, filter markers based on telemetry profile configuration, and encode them in telemetry reports after collection, ensuring telemetry reports include per-instance data for configured dynamic markers.
Added support for an "index" parameter in configuration to restrict data collection to specific indexes if required.
Reason for change:
Enable telemetry to capture dynamic, per-instance data from tables (e.g., Host table, Wi-Fi associated devices) where indexes are not fixed, ensuring richer and more flexible telemetry collection.