summaryrefslogtreecommitdiffstats
path: root/make/scripts/count-lock.sh
blob: 806235f5caeda19810aa556688159bc8da121749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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