LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-06-2016, 05:45 PM   #1
quantumlight
LQ Newbie
 
Registered: Nov 2015
Posts: 4

Rep: Reputation: Disabled
Cscoping Linux Kernel Code


Hi, I was wondering, when large code bases such as Linux has a macro that declares something as ENTRY(name), how should I search for it in cscope? I tried to type ENTRY(name) into "Find this text string", but for some reason cscope does not understand the symbols "(" or ")". Does anyone know if they have to have special prefixes of some sort? I tried escaping with '\' already.

Thanks.
 
Old 02-08-2016, 07:20 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
I have used cscope and it's great once you set it up. I just don't bother much since I change code baselines so much. Either case, I think it just uses a regex to find things. Therefore in my eyes, I'd use something like:
Code:
$ find . -name "*.c" -exec grep "ENTRY(name)" {} /dev/null \;
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to filter the linux kernel code based on config file. removing unnecessary code atulmt Linux - Kernel 4 06-29-2013 11:14 PM
[SOLVED] Do I have the Linux kernel code on my PC MEBates Linux - Software 9 02-15-2011 01:52 PM
linux kernel source code legolas_t Programming 1 09-17-2004 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration