Skip to content

Conversation

@ryanbreen
Copy link
Owner

Summary

Updates CLAUDE.md to strongly emphasize that the tracing framework is the MANDATORY approach for kernel debugging and observability.

Changes

  • Added 🚨 MANDATORY section explaining why logs are forbidden
  • Documented tracing framework usage:
    • GDB calls (trace_dump(), trace_dump_latest(), trace_dump_counters())
    • /proc interface (/proc/trace/{enable,events,buffer,counters})
    • Automated testing (scripts/test_tracing_via_gdb.sh)
  • Demoted raw_serial_char() to "LAST RESORT" status
  • Added trace dump commands to GDB workflow examples
  • Added "Tracing Framework Memory Dump" section for validation

Key Message

DO NOT add log statements to debug kernel issues. The tracing framework exists specifically for this purpose and is the ONLY acceptable approach for kernel observability.

Test plan

  • Documentation review

🤖 Generated with Claude Code

Updates debugging guidance to make the tracing framework the MANDATORY
primary approach for kernel observability:

- Added 🚨 MANDATORY section explaining why logs are forbidden
- Documented tracing framework usage (GDB calls, /proc interface)
- Added scripts/test_tracing_via_gdb.sh to approved workflows
- Demoted raw_serial_char() to "LAST RESORT" status
- Added trace_dump() commands to GDB workflow examples
- Added "Tracing Framework Memory Dump" section for validation

Key message: DO NOT add log statements to debug kernel issues.
The tracing framework exists specifically for this purpose.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ryanbreen ryanbreen merged commit 817559b into main Feb 2, 2026
1 of 2 checks passed
@ryanbreen ryanbreen deleted the docs/tracing-guidance branch February 2, 2026 17:34
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