opensubscriber
   Find in this group all groups
 
Unknown more information…

f : freebsd-hackers@freebsd.org 11 June 2012 • 5:24AM -0400

Re: decoding of multi-byte nops in dtrace
by Andriy Gapon

REPLY TO AUTHOR
 
REPLY TO GROUP




on 10/06/2012 23:40 Ryan Stone said the following:
> On Sun, Jun 10, 2012 at 12:38 PM, Andriy Gapon <avg@free...> 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@free... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@free..."

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.