summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSang-Heon Jeon <ekffu200098@gmail.com>2026-07-25 20:32:40 +0900
committerJulia Lawall <Julia.Lawall@inria.fr>2026-08-23 22:12:09 +0200
commitbf2fe566a8cbd3671b816223eec8fadd18ec8d77 (patch)
tree480eb871b5864d3f720323e31dca9bfaf2caa0c6 /tools/perf/scripts/python
parentb6b019a1d9b90ac51174f0ca15b1338b61506bf9 (diff)
coccinelle: double_lock: improve performance when no double lock exists
The 'balanced' rule collects the locks that are taken and released under the same condition, to prevent them from being reported as a double lock. It runs on every file that contains a lock call. To avoid this, collect the double-lock candidates first, so that 'balanced' runs only when one exists. The report then excludes what 'balanced' found. Every double lock that can be reported is also a candidate, so the same reports are made as before and the output does not change. A report-mode run over every .c file in the tree produces identical output. Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions