Skip to content

Enabled execution profiling for Cortex-R5 - #766

Merged
fdesbiens merged 1 commit into
eclipse-threadx:devfrom
fdesbiens:fix-cortex-r5-execution-profile
Sep 28, 2026
Merged

fdesbiens merged 1 commit into
eclipse-threadx:devfrom
fdesbiens:fix-cortex-r5-execution-profile

Conversation

@fdesbiens

@fdesbiens fdesbiens commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #341

I found that the Cortex-R5 assembly guarded every Execution Profile Kit hook with only TX_ENABLE_EXECUTION_CHANGE_NOTIFY. Defining the documented TX_EXECUTION_PROFILE_ENABLE initialized EPK storage but recorded no thread or interrupt transitions.

I made the AC5, AC6, GNU, Green Hills and IAR ports accept both symbols at every hook. I also extended the consistency, GCC and LLVM checks so the documented configuration remains covered.

I ran a CMake/Ninja Cortex-R5 profile build, which produced the expected enter and exit relocations in all seven context objects. GCC 14.2.1 and clang 22.1.0 each assembled 849/849 base files, 259/259 legacy-profile files and 219/219 current-profile files, and the port consistency checks passed. I did not run the proprietary AC5, IAR or Green Hills toolchains.

The Cortex-R5 assembly guarded its execution-profile hooks with only the legacy
TX_ENABLE_EXECUTION_CHANGE_NOTIFY symbol. The documented
TX_EXECUTION_PROFILE_ENABLE configuration initialized profiling without recording
thread or interrupt transitions.

I made all AC5, AC6, GNU, Green Hills, and IAR hooks accept both symbols. I also
extended the port consistency and GNU/LLVM feature checks to cover the current
configuration.

All 849 base assembly files and all 219 TX_EXECUTION_PROFILE_ENABLE files passed
with GCC 14.2.1 and clang 22.1.0. A CMake/Ninja Cortex-R5 profile build emitted
all seven expected hook relocations. Proprietary toolchains were not run.

Assisted-by: Codex (GPT-5) <noreply@openai.com>
@fdesbiens
fdesbiens merged commit 990faf6 into eclipse-threadx:dev Sep 28, 2026
14 checks passed
@fdesbiens
fdesbiens deleted the fix-cortex-r5-execution-profile branch September 28, 2026 16:45
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.

1 participant