summaryrefslogtreecommitdiff
path: root/gentree.py
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2014-04-15 19:01:17 +0000
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2014-04-17 16:23:08 -0700
commit7269e5dc8cff1e29af8af64475ceda50887c2865 (patch)
tree4c43140e76090d632617b6889990ca8d0f59332c /gentree.py
parent05d44557c6a83b4ecb935cb6306f62c742eb7bbf (diff)
backports: use --use-coccigrep for Coccinelle
This uses --use-coccigrep on our Cocccinelle library and removes the CPU adjustments depending on whether we are testing or not. The flag --use-coccigrep will tell Coccinelle to only kick off a worker on a file until it has determined that a rule being evaluated applies to a file. This does however mean that all files on its bucket list will be evaluated first, but this yields better CPU usage without having us to ramp up on the number of threads depending on the situation. Without this patch we were kicking off more threads to account for the fact that a Coccinelle thread will stop working on a file if it had little or nothing to do on a file. Possible work improvement: see how we can do away with tmp files for Coccinelle output and just use memory to for the ouput, or perhaps even disregard the stdout and only care for it if --debug-cocci is provided. mcgrof@drvbp1 ~/backports (git::master)$ time ./gentree.py --clean /home/mcgrof/linux-next /home/mcgrof/build/next-20140411 Copy original source files ... Apply patches ... Modify Kconfig tree ... Rewrite Makefiles and Kconfig files ... Done! real 1m14.880s user 10m47.824s sys 0m36.796s Cc: Peter Senna <peter.senna@gmail.com> Cc: Julia Lawall <julia.lawall@lip6.fr> Cc: Gilles Muller <Gilles.Muller@lip6.fr> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'gentree.py')
-rwxr-xr-xgentree.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/gentree.py b/gentree.py
index 7789e520..b890d28e 100755
--- a/gentree.py
+++ b/gentree.py
@@ -721,7 +721,6 @@ def process(kerneldir, outdir, copy_list_file, git_revision=None,
output = coccinelle.threaded_spatch(cocci_file, args.outdir,
logwrite, print_name,
- test_cocci,
extra_args=extra_spatch_args)
output = output.split('\n')
if output[-1] == '':