The debugging technology based on Linux

Source: Internet
Author: User

While usingPRINTKthe function can easily write messages to the log file or to the console. But a lot of usePRINTKOperations log files or console files with frequent functions can severely affectLinuxDrive development performance. Therefore, this requiresLinuxdrivers used in the development phasePRINTKfunction Output message, in the official releaseLinuxDrive performance may be affected by thePRINTKfunction is removed. Of course, the simplest way we can think of is by deleting it one after the other.PRINTKfunction, but this is a very impractical idea, and it is very cumbersome, and if you want to use it laterPRINTKThe function has a lot of trouble, it will affect the future operation. Want to controlPRINTKoutput, and it is easy to implement, the best way is undoubtedly to useCThe compiler command in the language.

Linux kernel Debugging has been considered by many people to be very difficult. Most people prefer to use the printk function to output debugging information directly. Nor would you like to use a variety of commands for debugging. Because doing so does not necessarily make for more benefits.

The Android emulator can only use the Gdbserver debugger through port mapping . However, in addition to the Development Board can be linked to gdbserver through the IP , but also through the serial port adjustment.

The debugging technology based on Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.