aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/count-lock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/scripts/count-lock.sh')
-rw-r--r--make/scripts/count-lock.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/make/scripts/count-lock.sh b/make/scripts/count-lock.sh
new file mode 100644
index 000000000..806235f5c
--- /dev/null
+++ b/make/scripts/count-lock.sh
@@ -0,0 +1,17 @@
+
+echo lock
+grep -RI "lock()" ../src/ | wc
+echo unlock
+grep -RI "unlock()" ../src/ | wc
+echo
+echo
+
+for i in `grep -RIl "unlock()" ../src/` ; do
+ echo $i
+ echo lock
+ grep -RI "lock()" $i | wc
+ echo unlock
+ grep -RI "unlock()" $i | wc
+ echo
+ echo
+done