6 # To debug, uncomment the following line
9 # Test whether the compile option -mprofile-kernel exists and generates
10 # profiling code (ie. a call to _mcount()).
11 echo "int func() { return 0; }" | \
12 $* -S -x c -O2 -p -mprofile-kernel - -o - 2> /dev/null | \
15 # Test whether the notrace attribute correctly suppresses calls to _mcount().
17 echo -e "#include <linux/compiler.h>\nnotrace int func() { return 0; }" | \
18 $* -S -x c -O2 -p -mprofile-kernel - -o - 2> /dev/null | \
19 grep -q "_mcount" && \