On Mon, Oct 29, 2007 at 05:44:50PM -0700, James McIlree wrote:
> >Excellent. I wrote a wrapper script that emulates -G by just  
> >emitting an
> >effectively empty object file. Is there some edge case in which that
> >technique would be insufficient?
> 
>       The OS X linker will helpfully report an error if you pass it an 
>       empty 
> object file. There are various things you can add to the object file  
> to suppress
> the "nothing's here" warning. Depending on what flags you pass, you
> should get away with "mostly empty" most of the time.

That's annoying. 

> >>    Your insight about the is-enabled probes is on target, if you  
> >>attempt
> >>to only use is-enabled probes, and never reference the actual dtrace
> >>probe, you'll get link time errors.
> >
> >I'm surprised the DTrace test suite didn't pick that up.  
> >Specifically, this
> >guy should have failed:
> >
> > usr/src/cmd/dtrace/test/tst/common/usdt/tst.onlyenabled.ksh
> >
> >Do you have a bug filed on this or should I file one?
> 
>       No radar on this yet. Do you know of any use cases for this kind of
> construct?

The bug reporter thing seems to be down. We've used this to create
embedded test frameworks were we use DTrace to perform safe dynamic
instrumentation to effect error injection for example.

I take it you guys haven't been running the test suite?

Adam

-- 
Adam Leventhal, FishWorks                        http://blogs.sun.com/ahl
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to