TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Kernel Debugging with LLDB and VMware Fusion

53 点作者 ddeville将近 10 年前

1 comment

mattbauer将近 10 年前
Just a few other notes to help make kernel development with VMware Fusion easier:<p>1. Add -zc and -zp to your boot args. It&#x27;s not documented but it greatly helps catch zone allocation problems (OSMalloc&#x2F;OSFree&#x2F;buffer overrun) issues.<p>2. Use snapshots instead of rebooting. It&#x27;s much faster to revert back to a snapshot than to reboot your virtual machine instance after a crash.<p>3. If you use a shared directory between your instance and host machine for moving your KEXTs&#x2F;other code, make sure to MD5 the files before loading. It&#x27;s very common for the instance to be using stale cached blocks.<p>4. While not necessary, I create a separate network interface that&#x27;s host only to debug on. I give it a static ip and add an entry to my host&#x27;s host file. It makes debugging instances easier to do since I can connect by name, i.e. kdb-remote vm0.
评论 #10072376 未加载