Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Compiling and Debugging Linux Kernel

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-12-2010
Member
 
Join Date: Nov 2010
Posts: 1,606
Compiling and Debugging Linux Kernel
  

The Linux kernel is definitely a solid system. The best advantage of Linux is again and again the same thing, the availability of source code. It is not only the source code alone, but the complete set of development and analysis tools to the Linux kernel .This makes the operating system much more flexible. Now the best part of this is that enables linux developers to building a better product on Linux platform. I want to go for a course for this. This time I am planing to go for a much higher Linux studies. So for that I need some highlights on this platform. What type of version is quiet better that I can give a start. I tried figuring out some basic support on that, but this one is not easy to understand. It is better due to the stable size and security on this operating system.

Reply With Quote
  #2  
Old 25-12-2010
Member
 
Join Date: Nov 2009
Posts: 948
Re: Compiling and Debugging Linux Kernel

It is right to say that though Linux is flexible but is not immune from errors. Investigation of a kernel problem using the graphical gdb front-ends is offered by ddd. Many such errors result in either stop or crash the kernel. It is often more informative expenditure report for example, the user assumes that a particular system was not logged off correctly while a driver was discharged. An example here would be various / proc entries that have been forgotten in the cancellation of a driver. Such errors in the kernel handles the rule without having to stop the system. Today there are gui based debugger offered which provides you a better compilation of the program. This is best for those who are building up a power tool on Linux.
Reply With Quote
  #3  
Old 25-12-2010
Member
 
Join Date: May 2009
Posts: 1,080
Re: Compiling and Debugging Linux Kernel

It is a common appearance that the kernel crashed after an error. At best it can be illustrated by the message of oops itself. Oops the kernel itself is a normal function that resides in the file traps.c. The two responsible for the display of functions Oops dump_stack () and show_trace () are functions that are left regular. The actual treatment of an error after a kernel Oops is later directly or in the system, which has reported an Oops. The use of an interactive debugger in the kernel, however, is a challenge. The kernel runs in a separate address space on behalf of all processes in the system.
Reply With Quote
  #4  
Old 25-12-2010
Member
 
Join Date: Jul 2009
Posts: 1,113
Re: Compiling and Debugging Linux Kernel

I recommend gdb for that. It ican be very useful if you are in the system internals do throw a glance. An efficient use of the debugger at this level requires a certain familiarity with the gdb commands, some knowledge of the assembly code of the underlying platform and the ability to source code and optimized assembly code together. The debugger must be invoked as if the kernel is an application program. In addition to the file name of an uncompressed kernel image, you should specify on the command line, type the name of a core file. In a running kernel is the core file, the kernel core image / proc / kcore. The first argument is the name of the uncompressed kernel zImage or bzImage or not of anything else compressed. The second argument on the command line gdb is the name of the core file.
Reply With Quote
  #5  
Old 25-12-2010
Member
 
Join Date: Jul 2009
Posts: 1,174
Re: Compiling and Debugging Linux Kernel

The discussion of a debugger in the kernel has been running for years. But now there are better options like KGDB. The KGDB requires two connected computers. On the first run, the kernel will be searched for errors. On the second works, the debugger GDB . For testing purposes, a memory test is included in the kernel. It can begin with the start parameters as memtest option. Major changes are once again done with wireless stack. Thus providing additional be 802.11n capabilities integrated to, fast wireless LAN standard to support the new. On x86 machines is now Attribution Page Table (PAT) support. The processor should cache can be controlled more accurately.
Reply With Quote
  #6  
Old 30-12-2010
Member
 
Join Date: May 2008
Posts: 1,020
Re: Compiling and Debugging Linux Kernel

Is a kernel only stopped once, the developers are only limited options available to investigate the error. In contrast to applications that run in user space, errors in the kernel immediately on the complete system. However, since the kernel after a crash is still functional, it is understandable that developers have made several thoughts on ways to exploit this fact for further searching. Probably the most popular way to investigate errors in the kernel provides, thereby printk () dar. This led to a second possibility - the Oops messages. Contrary to these reports provide the first impression for a programmer an extreme enrichment they do often include all the information needed to solve a problem.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Compiling and Debugging Linux Kernel"
Thread Thread Starter Forum Replies Last Post
Error 2 while compiling kernel in gentoo Virr Operating Systems 5 30-05-2011 08:08 PM
Unable to boot after compiling and installing kernel PWallace Operating Systems 4 09-11-2010 02:54 PM
ATI Proprietary driver not compiling on Linux kernel Psykiller Monitor & Video Cards 5 02-06-2010 11:54 AM
Re-compiling a Linux Kernel Lauren Ambrose Operating Systems 4 21-04-2010 10:03 AM


All times are GMT +5.5. The time now is 08:49 AM.