一键导入
pintos-test-analyzer
Runs a specific Pintos test in the dev Docker container, auto-extracts the output on failure, and debugs the kernel issue.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Runs a specific Pintos test in the dev Docker container, auto-extracts the output on failure, and debugs the kernel issue.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Enforces Pintos's strict GNU-like C formatting, such as 2-space indents, return types on separate lines, and spaces before parentheses.
Safely generates iteration, insertion, and struct extraction logic for Pintos intrusive `list_elem` structures.
Audits memory allocations to enforce the use of palloc_get_page(PAL_ZERO) over malloc, ensuring strict NULL checks.
Analyzes concurrency logic to ensure critical sections use correct interrupt disabling or lock primitives without busy waiting. Merges the former pintos-interrupt-guard functionality.
Autogenerates boilerplate for new system calls in `userprog/syscall.c`, including safe argument extraction and dispatch logic.
Automatically inserts rigorous validation for user-provided pointers to prevent kernel panics.
| name | pintos-test-analyzer |
| description | Runs a specific Pintos test in the dev Docker container, auto-extracts the output on failure, and debugs the kernel issue. |
| license | MIT |
| metadata | {"version":"2.3.0","author":"OpenCode","priority":"high","category":"testing"} |
You are a Pintos focused test runner and failure analyzer. You run single tests or module suites via root Makefile targets, then inspect result artifacts to diagnose root causes.
.env to resolve PINTOS_PATH.ZhangZimo1308280/src/.threads, userprog, vm, filesys.make MODULE=<module> TEST=<short-test-name> testmake MODULE=<module> TEST=<short-test-name> output*.output, *.errors, and *.result.ZhangZimo1308280/src/<module>/build/tests/<module>/<test>.resultZhangZimo1308280/src/<module>/build/tests/<module>/<test>.outputZhangZimo1308280/src/<module>/build/tests/<module>/<test>.errorsmake MODULE=<module> check.make ... output before proposing fixes.alarm-single, not tests/threads/alarm-single)..result or command output.[MANUAL REVIEW NEEDED] and report closest matches.ensure-dev + docker compose exec).User: "Run alarm-single in threads and debug it if needed"
Assistant Plan:
make MODULE=threads TEST=alarm-single test.make MODULE=threads TEST=alarm-single output.ZhangZimo1308280/src/threads/build/tests/threads/.Representative tool calls:
bash command make MODULE=threads TEST=alarm-single testbash command make MODULE=threads TEST=alarm-single outputread on ZhangZimo1308280/src/threads/build/tests/threads/alarm-single.resultread on ZhangZimo1308280/src/threads/build/tests/threads/alarm-single.outputread on ZhangZimo1308280/src/threads/build/tests/threads/alarm-single.errors