Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1425235
| From | Julia Lawall <julia.lawall@lip6.fr> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 3/8] coccicheck: add indexing enhancement options |
| Date | 2016-06-17 17:40 +0200 |
| Message-ID | <rL42e-8iY-27@gated-at.bofh.it> (permalink) |
| References | <rKO77-5Fb-3@gated-at.bofh.it> <rKO77-5Fb-7@gated-at.bofh.it> <rKYzv-4PW-31@gated-at.bofh.it> <rL3IR-8c1-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, 17 Jun 2016, Luis R. Rodriguez wrote: > On Fri, Jun 17, 2016 at 11:47:25AM +0200, Julia Lawall wrote: > > > > > > On Thu, 16 Jun 2016, Luis R. Rodriguez wrote: > > > > > Coccinelle has support to make use of its own enhanced "grep" > > > mechanisms instead of using regular grep for searching code, > > > it calls this 'coccigrep'. In lack of any indexing optimization > > > information it uses --use-coccigrep by default. > > > > > > This patch enable indexing optimizations heuristics so that coccigrep > > > can automatically detect what indexing options are available and use > > > them accordinly without any user input. > > > > > > Since git has its own index, support for using 'git grep' has been > > > added to Coccinelle, that should on average perform better than > > > using the internal coccigrep. Coccinelle has had idutils support > > > as well for a while now, you however need to refer to the index > > > file. We support detecting two idutils index files by default, > > > ID and .id-utils.index, assuming you ran either of: > > > > > > # What you might have done: > > > mkid -s > > > # as in coccinelle scripts/idutils_index.sh > > > mkid -i C --output .id-utils.index * > > > > > > Lastly, Coccinelle has had support for glimpseindex for a long while, > > > however the glimpseindex tool, the agrep library were previously closed > > > source, its all now open sourced, and provides the best performance, so > > > support that if we can detect you have a glimpse index. > > > > > > You can always override the index as follows: > > > > > > $ make coccicheck V=1 MODE=report COCCI_INDEX="--use-idutils ID" > > > > Why not just have a generic COCCI_ARGS argument? > > Actually SPFLAGS exists already so we can just document to > override using that. Will fix. That seems like a good solution. julia
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 3/8] coccicheck: add indexing enhancement options "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-06-17 00:40 +0200
Re: [PATCH v2 3/8] coccicheck: add indexing enhancement options Julia Lawall <julia.lawall@lip6.fr> - 2016-06-17 11:50 +0200
Re: [PATCH v2 3/8] coccicheck: add indexing enhancement options "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-06-17 17:20 +0200
Re: [PATCH v2 3/8] coccicheck: add indexing enhancement options Julia Lawall <julia.lawall@lip6.fr> - 2016-06-17 17:40 +0200
csiph-web