Re: [mpls-linux-general] how to debug
Status: Beta
Brought to you by:
jleu
|
From: <EMI...@te...> - 2005-10-11 07:57:35
|
Hi list, I have been reading some information about how to debug the=20 kernel and there are 3 basic ways: 1.- Remote kernel debugging using=20 gdb and using 2 computers linked via ethenet. 2.- Using kgdb, but I do=20 not know if I can install it in a Kernel 2.6.9 where I have 1.946. 2.-=20 The User-mode-linux. I want to see what function are called and what=20 commands are executed when for example you do a ping with MPLS 1.946,=20 and other things with MPLS 1.946. Right now, I have 6 computers with=20 fedora core 2 with 2 kernel: 2.6.5; and 2.6.9, which is the one where =20 I installed 1.946. Which method would you suggest? If it is the user- mode-linux, the host kernel would be the 2.6.5 and the guest kernel=20 the 2.6.9 with the MPLS 1.946. If I do that, will I be able to do a=20 ping to another computer? Because I have heard that it is a bit=20 difficult to configure uml with networking support, how do I do that? Do you know any page where I can find the steps I have to to follow? Thank you very much ----Mensaje original---- De: jl...@mi... Recibido: 03/10/2005 19:19 Para: "EMI...@te..." <EMI...@te...> CC: <mpl...@li.... net> Asunto: Re: [mpls-linux-general] how to debug Welcome to the=20 world of kernel programming. To help speed up the process I do much of=20 my initial development testing using user-mode-linux. Where my guest=20 kernel is the development kernel. With UML you can run gdb or other=20 debuggers against a guest kernel. On Mon, Oct 03, 2005 at 07:03:18PM=20 +0200, EMI...@te... wrote: > Hi list, >=20 > I was wondering=20 what you do to "debug" the MPLS functions: do=20 > you have > some=20 program to see which functions and what commands are=20 > executed >=20 whenever for example you do a ping? > I do it with "printk()" to=20 > see=20 it but it is very tedious and every > time I want to add a "printk()"=20 > I have to recompile the kernel.=20 > Do you use any other method? >=20 >=20 Thank=20 > you very much >=20 >=20 > Prueba el Nuevo Correo Terra; Seguro,=20 R???pido, Fiable. >=20 >=20 >=20 >=20 ------------------------------------------------------- > This SF.Net=20 email is sponsored by: > Power Architecture Resource Center: Free=20 content, downloads, discussions, > and more. http://solutions.newsforge. com/ibmarch.tmpl > _______________________________________________ >=20 mpls-linux-general mailing list > mpl...@li.... net > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu jl...@mi... Prueba el Nuevo Correo Terra; Seguro, R=C3=A1pido, Fiable. |