Skip to content

system/critmon: rename the CSECTION monitor option to IRQDISABLE - #4137

Open
Fix-Point wants to merge 1 commit into
apache:masterfrom
Fix-Point:nuttx-apps-critmon-irqdis
Open

Fix-Point wants to merge 1 commit into
apache:masterfrom
Fix-Point:nuttx-apps-critmon-irqdis

Conversation

@Fix-Point

@Fix-Point Fix-Point commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The kernel renamed CONFIG_SCHED_CRITMONITOR_MAXTIME_CSECTION to CONFIG_SCHED_CRITMONITOR_MAXTIME_IRQDISABLE when it extended the interrupt-disabled monitoring to spinlocks. The critmon application still tested the old name, which breaks the kernel build with -Werror=undef on configurations where the old name is not defined (e.g. arm64), and reads a report column the kernel no longer prints because the option defaults to -1.

Rename the option, the maxcrit variable and the report header column (CSECTION CALLER → IRQ-DISABLE CALLER) in system/critmon/critmon.c to match the kernel.

Impact

  • User impact: critmon now reads the IRQ-disabled column and no longer breaks builds where the old option name is undefined.
  • Build: no CONFIG_* change; only the application source.
  • Compatibility: the application follows the kernel option rename.
  • Documentation: none.
  • Security: none.
  • Hardware: none.

Testing

Build Host: Linux x86_64

Boards/Configurations:

  • qemu-armv7a:smp with CONFIG_SYSTEM_CRITMONITOR=y, CONFIG_SCHED_CRITMONITOR=y (part of the kernel spinlock PR series)

Verification:

  • tools/checkpatch.sh green.
  • The kernel PR builds with the renamed option (no -Werror=undef on arm64).

Depends-On: apache/nuttx#22215

jerpelea
jerpelea previously approved these changes Nov 25, 2026
Modify the statistical time of the critical section entered to the statistical time of irq disabled.

Pick-adapted: the app tree had drifted from the reference form, so the
changed lines were merged onto the current file (option rename, maxirqdis
variable and the IRQ-DISABLE report header column).

Assisted-By: mimo-v2.6-pro
Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
@Fix-Point
Fix-Point force-pushed the nuttx-apps-critmon-irqdis branch from 3e0e839 to d3633c5 Compare November 25, 2026 08:51
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.

4 participants