Christopher Dumoulin
2008-Sep-16 19:04 UTC
[dtrace-discuss] USDT probes in both static library and application
Hi All, I''ve got a problem when I have USDT probes in a static library and in the application code outside of the library. I build the static library containing some USDT probes, glomming everything together (ld -r) before creating the .a file to preserve the probe symbols. This all works fine. I build an application which also has some USDT probes. When I build the application which links to the static library, the USDT probes from the static library no longer show up with dtrace -l, but the application''s USDT probes are there. If I build the same application without running dtrace -G on the application''s object files, the USDT probes from the static library are available. Is there a way that I can have USDT probes from both the static library and the application at the same time? Regards, Chris Dumoulin
Adam Leventhal
2008-Sep-18 02:15 UTC
[dtrace-discuss] USDT probes in both static library and application
Hey Chris, I''m not aware of any work around, but this is a known issue and something that we''d like to address. Sorry I can''t be more helpful. Adam On Tue, Sep 16, 2008 at 03:04:42PM -0400, Christopher Dumoulin wrote:> Hi All, > I''ve got a problem when I have USDT probes in a static library and in > the application code outside of the library. > > I build the static library containing some USDT probes, glomming > everything together (ld -r) before creating the .a file to preserve the > probe symbols. This all works fine. > I build an application which also has some USDT probes. > > When I build the application which links to the static library, the USDT > probes from the static library no longer show up with dtrace -l, but the > application''s USDT probes are there. > If I build the same application without running dtrace -G on the > application''s object files, the USDT probes from the static library are > available. > > Is there a way that I can have USDT probes from both the static library > and the application at the same time? > > Regards, > Chris Dumoulin > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Fishworks http://blogs.sun.com/ahl
Luojia Chen
2009-Dec-01 20:38 UTC
[dtrace-discuss] USDT probes in both static library and application
Adam, I''d follow up to see if there is any progress on this issue: a static library and an application cannot currently provide USDT probes simultaneously? thanks, jenny Luojia(Jenny) Chen Software Engineer ISV Engineering v-mail:(510) 550-2394 SUN Microsystems ----- Original Message ----- From: Adam Leventhal <ahl at eng.sun.com> Date: Wednesday, September 17, 2008 7:17 pm Subject: Re: [dtrace-discuss] USDT probes in both static library and application To: Christopher Dumoulin <dumoulin at oanda.com> Cc: dtrace-discuss at opensolaris.org> Hey Chris, > > I''m not aware of any work around, but this is a known issue and something > that we''d like to address. Sorry I can''t be more helpful. > > Adam > > On Tue, Sep 16, 2008 at 03:04:42PM -0400, Christopher Dumoulin wrote: > > Hi All, > > I''ve got a problem when I have USDT probes in a static library and > in > > the application code outside of the library. > > > > I build the static library containing some USDT probes, glomming > > everything together (ld -r) before creating the .a file to preserve > the > > probe symbols. This all works fine. > > I build an application which also has some USDT probes. > > > > When I build the application which links to the static library, the > USDT > > probes from the static library no longer show up with dtrace -l, but > the > > application''s USDT probes are there. > > If I build the same application without running dtrace -G on the > > application''s object files, the USDT probes from the static library > are > > available. > > > > Is there a way that I can have USDT probes from both the static > library > > and the application at the same time? > > > > Regards, > > Chris Dumoulin > > _______________________________________________ > > dtrace-discuss mailing list > > dtrace-discuss at opensolaris.org > > -- > Adam Leventhal, Fishworks http://blogs.sun.com/ahl > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org
Adam Leventhal
2009-Dec-02 06:50 UTC
[dtrace-discuss] USDT probes in both static library and application
> I''d follow up to see if there is any progress on this issue: > a static library and an application cannot currently provide USDT > probes simultaneously?There is no progress on this issue. I suggest you find the relevant bug and add a call record. Adam -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl