-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
logging: allow storing log history in flash #20167
base: main
Are you sure you want to change the base?
Conversation
Damian-Nordic
commented
Feb 3, 2025
- When CONFIG_LOG_BACKEND_RPC_HISTORY_STORAGE_FCB option is set, define the "log_history" flash partition and enable storing the log history using Flash Circular Buffer.
- samples: nrf_rpc: ps_server: enable partition manager
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 562b8ac2d64e9475cce38972a971edb0331ad71a more detailssdk-nrf:
Github labels
List of changed files detected by CI (10)
Outputs:ToolchainVersion: 342151af73 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
subsys/logging/CMakeLists.txt
Outdated
zephyr_library_sources_ifdef(CONFIG_LOG_BACKEND_RPC_HISTORY_STORAGE_FCB log_backend_rpc_history_fcb.c) | ||
endif() | ||
|
||
if (CONFIG_PARTITION_MANAGER_ENABLED AND CONFIG_LOG_BACKEND_RPC_HISTORY_STORAGE_FCB) |
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.
if (CONFIG_PARTITION_MANAGER_ENABLED AND CONFIG_LOG_BACKEND_RPC_HISTORY_STORAGE_FCB) | |
if(CONFIG_PARTITION_MANAGER_ENABLED AND CONFIG_LOG_BACKEND_RPC_HISTORY_STORAGE_FCB) |
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.
and this should not be here, it should be in the subsys/partition_manager
folder
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.
Done
subsys/logging/pm.yml.log_history
Outdated
@@ -0,0 +1,7 @@ | |||
#include <zephyr/autoconf.h> | |||
|
|||
log_history: |
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.
move file to other folder
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.
Done
We need partition manager to easily add a partition for storing the log history on demand. Signed-off-by: Damian Krolik <[email protected]>
40b3057
to
d625337
Compare
When CONFIG_LOG_BACKEND_RPC_HISTORY_STORAGE_FCB option is set, define the "log_history" flash partition and enable storing the log history using Flash Circular Buffer. Signed-off-by: Damian Krolik <[email protected]>
d625337
to
562b8ac
Compare