kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: dhylands@gmail.com (Dave Hylands)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Is there a way to build a cross reference with kernel file
Date: Sat, 17 Dec 2011 21:47:09 -0800	[thread overview]
Message-ID: <CABi1daFMXAZr8A_Bweed_ViVFu+tnbm5taSTc1jV+bn6UQgUYQ@mail.gmail.com> (raw)
In-Reply-To: <6F5DE7538AFCDA45A114F5E7510424A702E34B86@hq-exchange01.bytemobile.com>

Hi Jeff,

On Fri, Dec 16, 2011 at 6:24 PM, Jeff Haran <jharan@bytemobile.com> 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 <jharan@bytemobile.com>
> > 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 <dspjm1@gmail.com>
> > 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 

  reply	other threads:[~2011-12-18  5:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-24 15:00 Is there a way to build a cross reference with kernel file Jimmy Pan
2011-10-25  2:05 ` Alexandre Courbot
2011-12-17  0:58   ` Jeff Haran
2011-12-17  2:04     ` Javier Martinez Canillas
2011-12-17  2:24       ` Jeff Haran
2011-12-18  5:47         ` Dave Hylands [this message]
2011-12-17  6:28     ` Alexandre Courbot
2011-10-25  2:29 ` Mulyadi Santosa
2011-10-25  7:19 ` Javier Martinez Canillas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABi1daFMXAZr8A_Bweed_ViVFu+tnbm5taSTc1jV+bn6UQgUYQ@mail.gmail.com \
    --to=dhylands@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).