<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Debug on Chris J Arges</title><link>https://chrisarges.net/tags/debug/</link><description>Recent content in Debug on Chris J Arges</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 30 Jul 2015 15:20:31 -0500</lastBuildDate><atom:link href="https://chrisarges.net/tags/debug/index.xml" rel="self" type="application/rss+xml"/><item><title>linux make deb-pkg speedup</title><link>https://chrisarges.net/posts/2015-07-30-linux-make-deb-pkg-speedup/</link><pubDate>Thu, 30 Jul 2015 15:20:31 -0500</pubDate><guid>https://chrisarges.net/posts/2015-07-30-linux-make-deb-pkg-speedup/</guid><description>&lt;p&gt;Because I&amp;rsquo;ve run &lt;code&gt;make deb-pkg&lt;/code&gt; so many times, I&amp;rsquo;ve started to see exactly where&#10;it starts to slow down even with really large machines. Observing cpu usage, I&#10;noticed that many parts of the build were serialized on a single core. Upon&#10;further investigation I found the following.&lt;/p&gt;&#10;&lt;h3 id="upstream-packaging"&gt;Upstream Packaging&lt;/h3&gt;&#10;&lt;p&gt;Module installation takes a really long time, and when building with&#10;&lt;code&gt;make deb-pkg -jN&lt;/code&gt;, you&amp;rsquo;ll see output like the following:&lt;/p&gt;</description></item><item><title>qemu/kvm guest debugging</title><link>https://chrisarges.net/posts/2015-04-13-qemu-kvm-guest-debugging/</link><pubDate>Mon, 13 Apr 2015 12:24:22 -0500</pubDate><guid>https://chrisarges.net/posts/2015-04-13-qemu-kvm-guest-debugging/</guid><description>&lt;p&gt;Occasionally it is useful to debug a running guest VM&amp;rsquo;s kernel. Setup your host&#10;machine for virtual machine hosting with QEMU/KVM, and add ddebs to your host&#10;system using this &lt;a href="https://wiki.ubuntu.com/DebuggingProgramCrash"&gt;wiki&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Next, compile your own qemu with &lt;code&gt;--enable-debug&lt;/code&gt;. Setup your environment to&#10;use this binary (if using libvirt), or call it directly using qemu.&lt;/p&gt;&#10;&lt;p&gt;Ensure you have &lt;code&gt;vmlinux&lt;/code&gt; of the L1 guest somewhere in your L0 machine.&lt;/p&gt;&#10;&lt;p&gt;First, setup your L1 guest. If running with qemu add the &lt;code&gt;-s&lt;/code&gt; flag. With&#10;libvirt you can add the following entry to your machine description:&lt;/p&gt;</description></item></channel></rss>