<p>Martin Roth has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/26995">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">util/lint: Run lint-extended-007-checkpatch checks in parallel<br><br>Instead of checking each directory in series, kick off all the checks<br>in parallel and then wait for them to finish.  Failures print out with<br>file information, so mixing output isn't a problem.  This reduces<br>the time it takes to run on lumberingbuilder from 31 seconds to 6.<br><br>Change-Id: I1252a68a723370389d399f3d1a2aff3fad64c365<br>Signed-off-by: Martin Roth <gaumless@gmail.com><br>---<br>M util/lint/lint-extended-007-checkpatch<br>1 file changed, 19 insertions(+), 25 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/26995/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/util/lint/lint-extended-007-checkpatch b/util/lint/lint-extended-007-checkpatch</span><br><span>index 5fbed01..4610b5e 100755</span><br><span>--- a/util/lint/lint-extended-007-checkpatch</span><br><span>+++ b/util/lint/lint-extended-007-checkpatch</span><br><span>@@ -15,30 +15,24 @@</span><br><span> #</span><br><span> # DESCR: Run checkpatch on directories that are known good</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-# Top level</span><br><span style="color: hsl(0, 100%, 40%);">-util/lint/lint-007-checkpatch "src/acpi"</span><br><span style="color: hsl(120, 100%, 40%);">+PIDS=""</span><br><span style="color: hsl(120, 100%, 40%);">+DIRS="src/acpi \</span><br><span style="color: hsl(120, 100%, 40%);">+src/cpu/armltd src/cpu/qemu-power8 src/cpu/qemu-x86 \</span><br><span style="color: hsl(120, 100%, 40%);">+src/drivers/dec src/drivers/gic src/drivers/ti \</span><br><span style="color: hsl(120, 100%, 40%);">+src/ec/purism \</span><br><span style="color: hsl(120, 100%, 40%);">+src/include/boot src/include/superio src/include/sys \</span><br><span style="color: hsl(120, 100%, 40%);">+src/mainboard/adlink src/mainboard/linutop \</span><br><span style="color: hsl(120, 100%, 40%);">+src/mainboard/purism src/mainboard/ti \</span><br><span style="color: hsl(120, 100%, 40%);">+src/soc/rdc \</span><br><span style="color: hsl(120, 100%, 40%);">+src/superio/acpi src/superio/common \</span><br><span style="color: hsl(120, 100%, 40%);">+"</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#src/cpu</span><br><span style="color: hsl(0, 100%, 40%);">-util/lint/lint-007-checkpatch "src/cpu/armltd src/cpu/qemu-power8 \</span><br><span style="color: hsl(0, 100%, 40%);">-src/cpu/qemu-x86"</span><br><span style="color: hsl(120, 100%, 40%);">+for directory in $DIRS; do</span><br><span style="color: hsl(120, 100%, 40%);">+ util/lint/lint-007-checkpatch "$directory" &</span><br><span style="color: hsl(120, 100%, 40%);">+    PIDS="$PIDS $!"</span><br><span style="color: hsl(120, 100%, 40%);">+done</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#src/drivers</span><br><span style="color: hsl(0, 100%, 40%);">-util/lint/lint-007-checkpatch "src/drivers/dec  src/drivers/gic \</span><br><span style="color: hsl(0, 100%, 40%);">-src/drivers/ti"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-#src/ec</span><br><span style="color: hsl(0, 100%, 40%);">-util/lint/lint-007-checkpatch "src/ec/purism"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-#src/include</span><br><span style="color: hsl(0, 100%, 40%);">-util/lint/lint-007-checkpatch "src/include/boot src/include/superio \</span><br><span style="color: hsl(0, 100%, 40%);">-src/include/sys"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-#src/mainboard</span><br><span style="color: hsl(0, 100%, 40%);">-util/lint/lint-007-checkpatch "src/mainboard/adlink src/mainboard/linutop \</span><br><span style="color: hsl(0, 100%, 40%);">-src/mainboard/purism src/mainboard/ti"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-# src/soc</span><br><span style="color: hsl(0, 100%, 40%);">-util/lint/lint-007-checkpatch "src/soc/rdc"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-# src/superio</span><br><span style="color: hsl(0, 100%, 40%);">-util/lint/lint-007-checkpatch "src/superio/acpi src/superio/common"</span><br><span style="color: hsl(120, 100%, 40%);">+# wait for tests to finish.</span><br><span style="color: hsl(120, 100%, 40%);">+for pid in $PIDS; do</span><br><span style="color: hsl(120, 100%, 40%);">+        wait "$pid"</span><br><span style="color: hsl(120, 100%, 40%);">+done</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26995">change 26995</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/26995"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I1252a68a723370389d399f3d1a2aff3fad64c365 </div>
<div style="display:none"> Gerrit-Change-Number: 26995 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Martin Roth <martinroth@google.com> </div>