Re: How to browse the code

2017-04-13 Thread valdis . kletnieks
On Thu, 13 Apr 2017 08:41:18 -0300, "Daniel." said: > The Makefile has targets for indexing the kernel.. Sometimes "find -exec > grep" helps... I will take a look in opengrok find |xargs grep. Will run a lot faster because it runs one grep for several hundred files, rather than one per file. F

Re: How to browse the code

2017-04-13 Thread Quentin Lambert
Something else you could look at is Coccinelle. http://coccinelle.lip6.fr/ The tool can be used to find very specific pattern in the code. For instance specific structure field that are used without initialization. It takes some learning but the tool is very powerful. You can also check here for

Re: How to browse the code

2017-04-13 Thread Daniel.
ctags + cscope + vim The Makefile has targets for indexing the kernel.. Sometimes "find -exec grep" helps... I will take a look in opengrok Em 13/04/2017 7:40 AM, "manty kuma" escreveu: > Here you can see where sk_buff structure is delared. > http://androidxref.com/kernel_3.18/xref/include/linu

Re: How to browse the code

2017-04-13 Thread manty kuma
Here you can see where sk_buff structure is delared. http://androidxref.com/kernel_3.18/xref/include/linux/skbuff.h#506 May be you want to get familiar on how to use opengroks interface by seeing some youtube video or some online documents... Whatever you want to do wrt to source code browsing, t

Re: How to browse the code

2017-04-12 Thread Aruna Hewapathirane
> On Tue, Apr 11, 2017 at 3:17 PM, Code Soldier1 wrote: > Folks, > Can you tell me how to effectively browse linux kernel code. I am > familiar with lxr etc but they do not do what I want or atleast I do > not know how to. > I am looking for something that can list all the places that a certain

Re: How to browse the code

2017-04-12 Thread Mandeep Sandhu
On Wed, Apr 12, 2017 at 2:46 PM, Mandeep Sandhu wrote: > On Wed, Apr 12, 2017 at 2:41 PM, Code Soldier1 > wrote: > >> Yes that is possible but it is very time consuming. Let's say I get >> 500 hits ? Try searching for destructor in linux kernel code. I am >> only interested in the one that is de

Re: How to browse the code

2017-04-12 Thread Mandeep Sandhu
On Wed, Apr 12, 2017 at 2:25 PM, Code Soldier1 wrote: > Thanks. This does not completely solve my issue. I am looking for > something that can associate a field name with the structure. > Well, you can search for a field's use using free-text search, then looks at the line of code to figure out

Re: How to browse the code

2017-04-11 Thread manty kuma
I like Opengrok. It is insanely fast in giving search results. However it takes sometime to setup and you need to index it before the first use. If you are ok with browsing someold kernels, then you can use this link http://androidxref.com/kernel_3.18/ which is maintained privately. If you want t

Re: How to browse the code

2017-04-11 Thread Mandeep Sandhu
> > > I am looking for something that can list all the places that a certain > field of a certain structure is used. For example, sk_buff has a field > called destructor, but so do many other data structures. How do I > search for places where just the destructor field of sk_buff. > I think lxr ha