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