|
@@ -0,0 +1,33 @@
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+stcolor=$(tput sgr0)
|
|
|
+redcolor=$(tput setaf 1)
|
|
|
+greencolor=$(tput setaf 2)
|
|
|
+
|
|
|
+functions=$(spatch -very_quiet -sp_file tools/dev/starpu_funcs.cocci $(find include -name '*.h'))
|
|
|
+for func in $functions ; do
|
|
|
+ fname=$(echo $func|awk -F ',' '{print $1}')
|
|
|
+ location=$(echo $func|awk -F ',' '{print $2}')
|
|
|
+ x=$(grep -rs "$fname(" examples tests mpi starpufft gcc-plugin)
|
|
|
+ if test "$x" == "" ; then
|
|
|
+ echo "function ${redcolor}${fname}${stcolor} at location ${redcolor}$location${stcolor} is not used in any examples or tests"
|
|
|
+ fi
|
|
|
+done
|