-
Notifications
You must be signed in to change notification settings - Fork 4
RDKEMW-8587: consume the config variables using dlsym() in MW #185
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
Open
yuvaramachandran-gurusamy
wants to merge
38
commits into
develop
Choose a base branch
from
feature/RDKEMW-8587-dlsym
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
6abd424
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast 59bbd5c
fix build issue
santoshcomcast b08a24d
fix build issue
santoshcomcast 9cc6b5f
addressed review comments
santoshcomcast ade5a61
fix build issue
santoshcomcast 6ac6e50
fix build issue
santoshcomcast 2dc944b
fix build issue
santoshcomcast f6f3d48
fix build issue
santoshcomcast 441361b
fix build issue
santoshcomcast 8d36de9
fix coverity issue and removed unwanted code.
santoshcomcast c676229
Fix build issue.
santoshcomcast 968901d
Addressed review comments.
santoshcomcast 513b3c7
Addressed review comments.
santoshcomcast fb4785d
addressed review comments.
santoshcomcast 35661b4
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast 4c52eeb
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast e645685
fix build issue
santoshcomcast db4fa61
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast f5838f4
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast 82e1bf4
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast 2ee6669
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast f68259b
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast 45e0530
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast 43ad5ad
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast de32c1b
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast efe2f43
debug. disable dumpconfig and add logs
santoshcomcast a84c6eb
enable debugconfig
santoshcomcast 2b96a08
move the debug prints within if condtion for all config dumpconfig
santoshcomcast 703701e
added few more logs, lock_guard in searchconfig
santoshcomcast 0ba55bf
add delay while every load
santoshcomcast b69cb63
RDKEMW-8587: Fix dl symbol crash issue
yuvaramachandran-gurusamy 0b96ee2
RDKEMW-8587: Fix dl symbol crash issue
yuvaramachandran-gurusamy 32d57fb
RDKEMW-8587: Fix dl symbol crash issue
yuvaramachandran-gurusamy 7ae4eb6
RDKEMW-8587: Fix build error
yuvaramachandran-gurusamy cca3783
RDKEMW-8587: Fix FPD std::logical_error crash issue and enhanced the …
yuvaramachandran-gurusamy 01776ad
RDKEMW-8587: Fixed the coverity issues
yuvaramachandran-gurusamy 17564c6
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast b8cdf99
RDKEMW-8587: consume the config variables using dlsym() in MW.
santoshcomcast File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -30,8 +30,12 @@ | |||
|
|
||||
| #include "dslogger.h" | ||||
|
|
||||
| #include <sys/syscall.h> // for SYS_gettid | ||||
| #include <unistd.h> // for syscall | ||||
|
|
||||
| #define unlikely(x) (__builtin_expect(!!(x), 0)) | ||||
| #define MAX_LOG_BUFF 512 | ||||
| #define MAX_LOG_BUFF 1024 | ||||
| #define kFormatMessageSize (MAX_LOG_BUFF - 128) | ||||
|
|
||||
| DS_LogCb logCb = NULL; | ||||
|
|
||||
|
|
@@ -40,29 +44,34 @@ void DS_RegisterForLog(DS_LogCb cb) | |||
| logCb = cb; | ||||
| } | ||||
|
|
||||
| int ds_log(int priority, const char* fileName, int lineNum, const char *format, ...) | ||||
| int ds_log(LogLevel priority, const char* fileName, int lineNum, const char *func, const char *format, ...) | ||||
| { | ||||
| char tmp_buff[MAX_LOG_BUFF] = {'\0'}; | ||||
|
|
||||
| int offset = snprintf(tmp_buff, MAX_LOG_BUFF, "[%s:%d] ", fileName, lineNum); | ||||
| char formatted[MAX_LOG_BUFF] = {'\0'}; | ||||
| enum LogLevel {INFO_LEVEL = 0, WARN_LEVEL, ERROR_LEVEL, DEBUG_LEVEL, TRACE_LEVEL}; | ||||
|
||||
| enum LogLevel {INFO_LEVEL = 0, WARN_LEVEL, ERROR_LEVEL, DEBUG_LEVEL, TRACE_LEVEL}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Similar to the issue in videoOutputPortConfig.cpp, the size pointers in the configuration structure point to local stack variables ('configSize', 'portSize'). These local variables will go out of scope when the function returns, making the pointers invalid. This could lead to undefined behavior if the configuration structure is accessed after function completion.