Skip to content

cpu/riscv_common: move trap print to specific debug define#22362

Open
AnnsAnns wants to merge 3 commits into
RIOT-OS:masterfrom
AnnsAnns:riscv_common_debug_print
Open

cpu/riscv_common: move trap print to specific debug define#22362
AnnsAnns wants to merge 3 commits into
RIOT-OS:masterfrom
AnnsAnns:riscv_common_debug_print

Conversation

@AnnsAnns

@AnnsAnns AnnsAnns commented Jun 9, 2026

Copy link
Copy Markdown
Member

Contribution description

While extremely useful in some scenarios, the trap print would cause massive performance degradation when DEVELHELP usually wouldn't. When this was originally added I targeted my specific niche issues but when developing an application that doesn't directly deal with traps it would completely clog the entire output.

Testing procedure

Issues/PRs references

Declaration of AI-Tools / LLMs usage:

AI-Tools / LLMs that were used are:

  • Noooooooooooooooooooooooooooooo

@github-actions github-actions Bot added Platform: RISC-V Platform: This PR/issue effects RISC-V-based platforms Area: cpu Area: CPU/MCU ports labels Jun 9, 2026
@AnnsAnns AnnsAnns added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jun 9, 2026
@crasbe crasbe added the Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation label Jun 9, 2026
Comment thread cpu/riscv_common/include/irq_arch.h Outdated
Co-authored-by: crasbe <crasbe@gmail.com>
Comment thread cpu/riscv_common/include/irq_arch.h Outdated
Comment on lines +41 to +42
#ifndef PRINT_VERBOSE_TRAP_INFO
# define PRINT_VERBOSE_TRAP_INFO 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't that a typical configuration knob that should be prefixed with CONFIG_ (and also be available through Kconfig)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

kconfig'ed

@github-actions github-actions Bot added the Area: Kconfig Area: Kconfig integration label Jun 9, 2026
@riot-ci

riot-ci commented Jun 9, 2026

Copy link
Copy Markdown

Murdock results

✔️ PASSED

216c240 fix use kconfig

Success Failures Total Runtime
11124 0 11124 12m:44s

Artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports Area: Kconfig Area: Kconfig integration CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: RISC-V Platform: This PR/issue effects RISC-V-based platforms Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants