What problem does it solve?
Kernel logs are the primary window into system behavior, but manually sifting through verbose, timestamped output to find critical information can be time-consuming. This Skill provides efficient patterns and tools for searching, filtering, and analyzing Breenix kernel logs, enabling rapid debugging and verification.
Core Features & Use Cases
- Targeted Log Search: Quickly find specific errors, panics, page faults, or checkpoint signals using
grep or the find-in-logs script.
- Execution Flow Tracing: Follow the kernel's boot sequence or specific subsystem initialization to understand behavior.
- Error Context Extraction: Retrieve surrounding log lines to understand the context of a failure.
- Use Case: Your latest kernel build is failing a test, and you need to understand why. Use this Skill to search the latest log for
"PANIC" or "PAGE FAULT", extract the relevant lines with context, and trace the execution flow leading up to the error, quickly pinpointing the source of the problem.
Quick Start
Find panics in recent logs
echo '-i "panic"' > /tmp/log-query.txt
./scripts/find-in-logs
Find context around a test completion signal
echo '-A20 -B10 "KERNEL_POST_TESTS_COMPLETE"' > /tmp/log-query.txt
./scripts/find-in-logs
Directly grep for double faults with context
grep -A10 -B5 "Double Fault" logs/breenix_20250120_*.log