Runnig a program in debugging mode at Kernel level
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Runnig a program in debugging mode at Kernel level
Hello there,
I have been using the Intel Pro/Wireless IPW2200BG card in my wireless testbed, and I wish to obtain certain information from this (driver) level so that I can make use of such information at the network-layer. Now, I wish to make sure that whatever I pass on to the network-layer is correct. For this purpose, I intend to let the driver running at the kernel-level print some values onto the stdout. However, as you know the stdio.h and hence fprintf/printf cannot be used at the kernel level for me to print some run-time values. Hence, can somebody please let me have an idea as to how this can be performed.
Thanks in advance for taking your invaluable time to answer my question.
Thanks, I am wondering whether there exists any debugging tool like
gdb/ddd for kernel-level hacking. Can I still use gdb/ddd ??? Please
shed some light.
if you use UML (user mode linux) http://user-mode-linux.sourceforge.net/ you can run a kernel as a user space process, and use gdb to debug. However since you are testing a wireless card driver, I'm not sure if that is goin to work.
Connor.Xu's link is a good start too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.