Skip to content
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

Adding volatile to tasks.c's runtime information to protect against… #62

Merged
merged 1 commit into from
May 22, 2020

Conversation

the78mole
Copy link
Contributor

…compiler optimization

As diskussed in https://forums.freertos.org/t/make-runtime-stats-working-with-compiler-optimization-enabled/9846 and on lined out on https://blog.the78mole.de/freertos-debugging-on-stm32-cpu-usage/, this makes run-time stats working with compiler optimizations.

Description

Protecting the runtime information against compiler optimizations, it needs some volatile added.

Test Steps

Build FreeRTOS with GENERATE_RUN_TIME_STATS and try to extract it. It will not contain valid/useful data, because the variable for total run-time was not read correctly.

Related Issue

none

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@the78mole the78mole changed the title Addind volatile to tasks.c's runtime information to protect against… Adding volatile to tasks.c's runtime information to protect against… May 22, 2020
Copy link
Contributor

@RichardBarry RichardBarry left a comment

Choose a reason for hiding this comment

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

Thanks!

@RichardBarry RichardBarry merged commit e4e4fb0 into FreeRTOS:master May 22, 2020
AhmedIsmail02 pushed a commit to AhmedIsmail02/FreeRTOS-Kernel that referenced this pull request Jun 12, 2024
The `freertos-iot-libraries-tests` application
was mistakenly relying on another app's TF-M configuration file.
The other app (`aws-iot-example`) was removed along with its
configuration files.

The `freertos-iot-libraries-tests` application now uses its
own TF-M configuration file.

Signed-off-by: Hugues Kamba-Mpiana <hugues.kambampiana@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants