-
Notifications
You must be signed in to change notification settings - Fork 518
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
[CH6178] Checkpoints/diagnostics #1369
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4af9e54
Photon/P1: FreeRTOS 'enhancements' for thread list / stacktrace acqui…
avtolstoy 2e306f5
Electron: FreeRTOS 'enhancements' for thread list / stacktrace acquis…
avtolstoy e5dc848
Force -fomit-frame-pointer on ARM
avtolstoy e555482
Add link_global_retained_system_end_section symbol to indicate retain…
avtolstoy db6d938
const variables declared in header files will have external linkage w…
avtolstoy a71eba6
link_heap_location and link_heap_location_end definitions missing
avtolstoy 31a3301
os_thread_dump and HAL_Core_Generate_Stacktrace implementation
avtolstoy 6138473
platform-specific diagnostic definitions and implementations
avtolstoy fa5b320
Adds platform dependency to communication and services libs
avtolstoy 6dbf7d4
communication: set LOG_COMPILE_TIME_LEVEL=LOG_LEVEL_ERROR
avtolstoy 93dc177
DiagnosticService implementation
avtolstoy 53f82f2
LOG() statements should be checkpoints
avtolstoy 8a2793c
wiring: CHECKPOINT() implementation
avtolstoy 6fc4893
Logger class log methods should be checkpoints as well
avtolstoy 9fbcb86
JSONWriter: long int and long unsigned value overloads
avtolstoy b232512
DiagnosticService: unit tests
avtolstoy 44bc9fd
USB_REQUEST_GET_DIAGNOSTIC and USB_REQUEST_UPDATE_DIAGNOSTIC support
avtolstoy 0e12904
Small sample checkpoint demo app. TODO: tools
avtolstoy cb2bd02
Sample CLI for checkpoint test app
avtolstoy f18528d
A hack to make certain versions of gcc happy: using constants, instea…
avtolstoy 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 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#pragma once | ||
|
||
// redefine these for the underlying concurrency primitives available in the RTOS | ||
|
||
typedef int os_result_t; | ||
typedef int os_thread_prio_t; | ||
typedef void* os_thread_t; | ||
typedef void*os_timer_t; | ||
typedef void*os_queue_t; | ||
typedef void*os_mutex_t; | ||
typedef void* condition_variable_t; | ||
typedef void* os_semaphore_t; | ||
typedef void* os_mutex_recursive_t; | ||
typedef uintptr_t os_unique_id_t; |
This file contains 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
Binary file not shown.
This file contains 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 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 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 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
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.
If we wanted to expand this structure later while retaining backwards compatibility, what would we need to add/change now? A reserved void * at the end?
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.
It's currently only used within a single module and is not exported, so that shouldn't be a concern at the moment. If we later decide to export it, the first
reserved
becomes aversion
field as usual.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.
Thanks for pointing that out @avtolstoy, sounds good.