From ecec075043a34fa0e88c2716c5f4eca3782f7ca3 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Tue, 15 Apr 2014 19:52:02 +0000 Subject: [PATCH] backports: add a 120 second timeout rule to Coccinelle Our current overall run time is less than 120 seconds so lets add a trigger to fail if we have a rule taking longer. Adding this has no extra incurred overhead cost. 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 1m15.463s user 10m49.100s sys 0m37.100s Cc: Peter Senna Cc: Julia Lawall Cc: Gilles Muller Signed-off-by: Luis R. Rodriguez --- lib/bpcoccinelle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bpcoccinelle.py b/lib/bpcoccinelle.py index 75a0b37eba88..2e0153ebeb52 100644 --- a/lib/bpcoccinelle.py +++ b/lib/bpcoccinelle.py @@ -35,6 +35,7 @@ def spatch(cocci_file, outdir, '--recursive-includes', '--relax-include-path', '--use-coccigrep', + '--timeout', '120', '--backup-suffix', '.cocci_backup', '--dir', '.'] if (max_threads > 1): -- 2.30.2