Skip to content

Sleep: error flags fix #9277

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

Merged
merged 3 commits into from
Feb 20, 2019
Merged

Sleep: error flags fix #9277

merged 3 commits into from
Feb 20, 2019

Conversation

deepikabhavnani
Copy link

@deepikabhavnani deepikabhavnani commented Jan 7, 2019

Description

All the debug calls in sleep manager for sleep tracing should be changed to mbed_error_printf since most sleep API's and calls are interrupt and thread safe. PR #9260

Issue was seen only with debug profile and was not captured in develop profile because MBED_TRAP_ERRORS_ENABLED flag was not set in develop profile. Fixed here.

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[X] Breaking change

Reviewers

@kjbracey-arm @theotherjimmy

Release notes

This change adds the MBED_TRAP_ERRORS_ENABLED flag to the develop profile. It traps on RTX errors and invalid operations in ISR context enabled in the develop profile. These errors were silent in the develop profile.
This change might result in an increase of the final binary size.

@ciarmcom
Copy link
Member

ciarmcom commented Jan 7, 2019

@deepikabhavnani, thank you for your changes.
@theotherjimmy @kjbracey-arm @ARMmbed/mbed-os-tools @ARMmbed/mbed-os-maintainers please review.

@deepikabhavnani
Copy link
Author

@ARMmbed/mbed-os-maintainers - Can we test this PR in CI (based on availability) to see the impact of newly added flags

@cmonr
Copy link
Contributor

cmonr commented Jan 10, 2019

@deepikabhavnani Will look at doing that tomorrow. We still have a queue of PRs in CI for 5.11.2 will be generated tonight.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 15, 2019

5.11.2 is still not completed (currently one more fix incoming most probably), I'll set this to needs: CI to run it through CI

@deepikabhavnani
Copy link
Author

deepikabhavnani commented Jan 15, 2019

5.11.2 is still not completed (currently one more fix incoming most probably), I'll set this to needs: CI to run it through CI

Shall I still rebase to pick new Travis changes? Rebase done, can test as per CI availability

@cmonr
Copy link
Contributor

cmonr commented Jan 17, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 17, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@cmonr
Copy link
Contributor

cmonr commented Jan 17, 2019

@theotherjimmy @kjbracey-arm Any thoughts?

@deepikabhavnani I just had a thought. This is probably going to add more debug symbols and increase binary size for debug builds, correct?

@deepikabhavnani
Copy link
Author

@cmonr - Yes some more debug messages

#if defined(MBED_TRAP_ERRORS_ENABLED) && MBED_TRAP_ERRORS_ENABLED

MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_PLATFORM, MBED_ERROR_INVALID_OPERATION),

#if defined(MBED_TRAP_ERRORS_ENABLED) && MBED_TRAP_ERRORS_ENABLED

increase binary size for debug builds

CI runs debug builds but I don't see any size increase

@cmonr
Copy link
Contributor

cmonr commented Jan 18, 2019

CI runs debug builds but I don't see any size increase

Oh. That was a welcome surprise.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 21, 2019

Add flag "-DMBED_TRAP_ERRORS_ENABLED=1" to develop profile as well

Why is this being added to develop profile? It was not initially clear. Can you add it to the commit msg?

How is this breaking - by adding a new macro to the develop profile?

@cmonr
Copy link
Contributor

cmonr commented Jan 31, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 31, 2019

Test run: SUCCESS

Summary: 12 of 12 test jobs passed
Build number : 2
Build artifacts

@NirSonnenschein
Copy link
Contributor

CI has passed, but does this still needs and additional review. @kjbracey-arm @theotherjimmy could you please take a look

@deepikabhavnani
Copy link
Author

Ready to merge?

@NirSonnenschein
Copy link
Contributor

hi @deepikabhavnani , Breaking changes now need a release notes section in the description. see example here:#9568

@deepikabhavnani
Copy link
Author

deepikabhavnani commented Feb 6, 2019

hi @deepikabhavnani , Breaking changes now need a release notes section in the description. see example here:#9568

Done. Can be reviewed by @ARMmbed/mbed-docs

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 11, 2019

The final approval waiting for @bulislaw but as he is OoO this week, @donatieng can you review instead please?

@jeromecoutant
Copy link
Collaborator

Ready to merge?

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 20, 2019

Ready to merge?

While waiting for final approval, running CI now as it was a week ago.

CI started

@mbed-ci
Copy link

mbed-ci commented Feb 20, 2019

Test run: SUCCESS

Summary: 12 of 12 test jobs passed
Build number : 3
Build artifacts

Copy link
Contributor

@donatieng donatieng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@cmonr cmonr merged commit 2910ed5 into ARMmbed:master Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants