On Sun, Jun 10, 2012 at 12:38 PM, Andriy Gapon <[email protected]> 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)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to