mirror of
https://github.com/Lakr233/vphone-cli.git
synced 2026-09-02 02:34:29 +00:00
Prefix research patch comparison doc and normalize root markdown names Rename research root markdown files to scoped topic names
1.3 KiB
1.3 KiB
Kernel Info Queries
Use these commands from repo root (vphone-cli).
Database Introspection
sqlite3 research/kernel_info/kernel_symbols.db ".schema kernel_symbols"
sqlite3 research/kernel_info/kernel_symbols.db "select count(*) from kernel_symbols;"
sqlite3 research/kernel_info/kernel_symbols.db "select kernel_name, matched, missed, percent, total from kernel_symbols order by kernel_name;"
Resolve JSON Path By Kernel Name
sqlite3 research/kernel_info/kernel_symbols.db \
"select json_path from kernel_symbols where kernel_name='kernelcache.release.vphone600';"
sqlite3 research/kernel_info/kernel_symbols.db \
"select json_path from kernel_symbols where kernel_name='kernelcache.research.vphone600';"
Fast Symbol Search
rg -n 'panic' research/kernel_info/json/kernelcache.release.vphone600.bin.symbols.json
rg -n 'mach_trap' research/kernel_info/json/kernelcache.research.vphone600.bin.symbols.json
rg -n '0xfffffe00' research/kernel_info/json/kernelcache.release.vphone600.bin.symbols.json
Use XNU Source Reference
rg -n 'function_or_symbol_fragment' research/reference/xnu/{bsd,osfmk,iokit,security}
Prefer direct source matches in research/reference/xnu for behavioral explanations.