logging: syst: add support for catalog messages
MIPI Sys-T catalog messages are similar to dictionary logging where an ID is emitted instead of the format string. This allows the format strings to be removed from the final binary to save a few bytes. This adds the necessary bits to determine to emit catalog messages when appropriate. Note that this implementation copies the argument list as-is with string arguments stitched together since the format strings are assumed to have been removed and they cannot be examined to properly convert the argument lists into catalog message payloads. Because of this, various build asserts are there to avoid building for configurations where they are known not to work. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
f7d3d0268e
commit
ba488d14d4
3 changed files with 421 additions and 2 deletions
|
@ -1698,7 +1698,11 @@ list(APPEND
|
|||
|
||||
if(CONFIG_LOG_DICTIONARY_SUPPORT)
|
||||
set(log_dict_db_output --json=${PROJECT_BINARY_DIR}/log_dictionary.json)
|
||||
elseif(CONFIG_LOG_MIPI_SYST_USE_CATALOG)
|
||||
set(log_dict_db_output --syst=${PROJECT_BINARY_DIR}/mipi_syst_collateral.xml)
|
||||
endif()
|
||||
|
||||
if(log_dict_db_output)
|
||||
list(APPEND
|
||||
post_build_commands
|
||||
COMMAND
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue