From: "Lily Huang" Subject: Re: How to disable xen debugger? Date: Wed, 7 Mar 2007 10:31:31 -0500 Message-ID: <4d616cca0703070731j1f008721jf9795f6ada8683d2@mail.gmail.com> References: <4d616cca0703060945t5a176b97v2e3462130796e433@mail.gmail.com> <87zm6plc2p.fsf@pike.pond.sub.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0666913851==" Return-path: In-Reply-To: <87zm6plc2p.fsf@pike.pond.sub.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Markus Armbruster Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============0666913851== Content-Type: multipart/alternative; boundary="----=_Part_109340_13821187.1173281491459" ------=_Part_109340_13821187.1173281491459 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks a lot for your help! I already found the problem. My system is slowed down because of misconfiguration, nothing to do with the debugger. But another funny thing for me is that once I used ctrl+c to terminate gdbserver-xen, the dom0 will immediately reboot. My setting is as follows: 1. I ran gdbserver-xen in dom0, and ran my kernel modules in both dom0 and a domU. The kernel modules are essentially a frontend (in domU) and a backend (in dom0) driver. 2. I then debugged the frontend in dom0 3. My code runs normally (at least, I didn't see anything wrong). After I debugged the code, I did ctrl+c to terminate gdbserver-xen, dom0 immediatelly reboot, which is not expected. Any solution to this problem? Another question: is there any way to debug the kernel module running in dom0? gdbserver-xen seems to only debug domU. Again, thanks a lot for your help! -l On 3/7/07, Markus Armbruster wrote: > > "Lily Huang" writes: > > > Hi, > > > > I followed the instructions in tools/debugger/gdb/README to enable the > xen > > debugging feature. But after that my system (a kernel module) works 10 > times > > slower. Maybe the debugger slows down the running. > > > > What's the right way to reverse and disable the debugger? I tried to > disable > > the "Kernel hacking -> Compile the kernel with debug info [*]" option. > But it > > does not help. Any ideas? > > Just terminate gdbserver-xen. > > If that doesn't do it: What are your exact steps from `runs normally' > to `runs slowly'? > ------=_Part_109340_13821187.1173281491459 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks a lot for your help! I already found the problem. My system is slowed down because of misconfiguration, nothing to do with the debugger.

But another funny thing for me is that once I used ctrl+c to terminate gdbserver-xen, the dom0 will immediately reboot. My setting is as follows:
1. I ran gdbserver-xen in dom0, and ran my kernel modules in both dom0 and a domU. The kernel modules are essentially a frontend (in domU) and a backend (in dom0) driver.
2. I then debugged the frontend in dom0
3. My code runs normally (at least, I didn't see anything wrong).

After I debugged the code, I did ctrl+c to terminate gdbserver-xen, dom0 immediatelly reboot, which is not expected. Any solution to this problem?

Another question: is there any way to debug the kernel module running in dom0? gdbserver-xen seems to only debug domU.

Again, thanks a lot for your help!

-l



On 3/7/07, Markus Armbruster <armbru@redhat.com> wrote:
"Lily Huang" <ushuanglily@gmail.com> writes:

> Hi,
>
> I followed the instructions in tools/debugger/gdb/README to enable the xen
> debugging feature. But after that my system (a kernel module) works 10 times
> slower. Maybe the debugger slows down the running.
>
> What's the right way to reverse and disable the debugger? I tried to disable
> the "Kernel hacking -> Compile the kernel with debug info [*]" option. But it
> does not help. Any ideas?

Just terminate gdbserver-xen.

If that doesn't do it: What are your exact steps from `runs normally'
to `runs slowly'?

------=_Part_109340_13821187.1173281491459-- --===============0666913851== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0666913851==--