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.  For bonus points, if you have
a git tree, 'find *' at the top level will run faster than 'find .', because
* will glob into something that doesn't incude .git so no traversal into
that section of the source tree.

git grep   works too, if you have a git tree like any serious kernel hacker.

Attachment: pgp5sodNf2KuK.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to