Kernel generating tags and cscope databases for x86 architectures

Source: Internet
Author: User

Recently downloaded the latest source of kernel version 4.15, but the download of the Linux kernel not only contains the functions of the x86 architecture, such as: ARM, PowerPC and other functions of the architecture, if directly generated tags files, in the future, multiple schemas of the same name function will be confused together, It's not convenient. Fortunately, the intimate Linux kernel group to prepare the tags.sh file, you can automatically generate the appropriate tags (ctags), and Cscope.out (Cscope).

The command is as follows:

Make tags arch=x86      // Generate tags file, according to the system decision is x86 or x86_64make cscope arch=x86    //  Build Cscope's tags database

Note: 1, must be installed in advance of the Ctags and Cscope 2 software.

2, cscope than ctags powerful, but the use of more trouble:

Cscope is stronger than Ctags:

1. Functions that can be searched for calls.

2. You can output functions that call this function.

3. You can output functions called by this function.

Kernel generating tags and cscope databases for x86 architectures

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.