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
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
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
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
> 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
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
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
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
>
>
> 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
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
field of a certain structure is used. For example, sk_buff has a fi
10 matches
Mail list logo