db/fixup_kernel.sh: fix clear_user() handling
[smatch.git] / smatch_data / db / delete_too_common_fn_ptr.sh
blob5f050f3c59a4c1652757542814fb32a498edbfb5
1 #!/bin/bash
3 db_file=$1
5 IFS="|"
6 echo "select count(function), function from function_ptr group by function;" | \
7 sqlite3 $db_file | sort -n | tail -n 100 | \
9 while read cnt func ; do
10 if [ $cnt -lt 200 ] ; then
11 continue
13 echo "delete from function_ptr where function = '$func';" | sqlite3 $db_file
14 done