From mboxrd@z Thu Jan 1 00:00:00 1970 From: dhylands@gmail.com (Dave Hylands) Date: Sat, 17 Dec 2011 21:47:09 -0800 Subject: Is there a way to build a cross reference with kernel file In-Reply-To: <6F5DE7538AFCDA45A114F5E7510424A702E34B86@hq-exchange01.bytemobile.com> References: <6F5DE7538AFCDA45A114F5E7510424A702E34B6C@hq-exchange01.bytemobile.com> <6F5DE7538AFCDA45A114F5E7510424A702E34B86@hq-exchange01.bytemobile.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi Jeff, On Fri, Dec 16, 2011 at 6:24 PM, Jeff Haran wrote: > > -----Original Message----- > > From: Javier Martinez Canillas [mailto:martinez.javier at gmail.com] > > Sent: Friday, December 16, 2011 6:04 PM > > To: Jeff Haran > > Cc: Alexandre Courbot; Jimmy Pan; Kernelnewbies at kernelnewbies.org > > Subject: Re: Is there a way to build a cross reference with kernel file > > > > On Sat, Dec 17, 2011 at 1:58 AM, Jeff Haran > > wrote: > > >> -----Original Message----- > > >> From: kernelnewbies-bounces at kernelnewbies.org > > [mailto:kernelnewbies- > > >> bounces at kernelnewbies.org] On Behalf Of Alexandre Courbot > > >> Sent: Monday, October 24, 2011 7:05 PM > > >> To: Jimmy Pan > > >> Cc: Kernelnewbies at kernelnewbies.org > > >> Subject: Re: Is there a way to build a cross reference with kernel > > > file > > >> > > >> On Tue, Oct 25, 2011 at 12:00 AM, Jimmy Pan > > wrote: > > >> > It seems we can use ctags, while, I don't really know how to > > > implement it. > > >> > I don't want to use the online cross reference every time... > > >> > > >> I personally use KDevelop to navigate the kernel. It's not perfect yet > > >> and a little bit tricky to configure correctly, but it's still pretty > > >> efficient and I work on improving it. I wrote about it recently: > > >> http://www.gnurou.org/code/kdevelop-kernel > > >> > > >> CTags is also known to work well, actually there is even a 'make tags' > > >> target in the kernel's Makefile. > > >> > > >> Hope this helps, > > >> Alex. > > > > ... > > > Has anybody found a tool the solves this kind of problem well? > > > Specifically, given a struct foo containing a field named bar, show me > > > all of the code that references the bar field of struct foos but not > the > > > bar fields of other structures nor instances of variables that are > > > themselves named bar. > It's not free, but I use Visual SlickEdit, and it is capable of doing what you want. www.slickedit.com I tried what you suggested, and clicked on the cb field inside the sk_buff struct and asked for all references to that. I checked through most of what it returned and they all seemed to be valid. -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111217/dc919370/attachment.html