on 10/06/2012 23:40 Ryan Stone said the following: > On Sun, Jun 10, 2012 at 12:38 PM, Andriy Gapon <a...@freebsd.org> wrote: >> Interesting observations, thank you. >> Do you use -O2 or higher optimization for kernel/modules build? >> I use only -O1. >> >> Here are some stats from my system: >> $ dtrace -ln fbt::: | fgrep -c entry >> 16876 >> $ dtrace -ln fbt::: | fgrep -c return >> 16729 >> >> So, 147 functions without return probe. > > Try re-compiling with -foptimize-sibling-calls. That enables the tail > call optimization in gcc, and therefore you get many functions with no > ret instruction (and thus no return probe in DTrace)
No, thank you :-) I switched from -O2 to -O1 exactly for this reason (among a few others), although -fno-optimize-sibling-calls would be a more targeted solution. -- Andriy Gapon _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"