Hello all, I''ve been playing a bit with dtrace recently and wanted to try it out on some Java codes. I understand that the later mustang builds have dtrace providers enabled. But, no matter what I try, I am unable to get dtrace to work. Can someone please provide an example that works with the mustang builds and not the -Xrun 1.5 versions? I have a java code running, and using dtrace to list all the providers I don''t see anything that it java related. SO, I''m clearly missing something. Thanks! -- Alan Stange
Hi Alan, When you say that you can''t get DTrace to work, what have you tried exactly? You should be able to do a dtrace -l as root and see the Java provider. I''ve cc''ed Keith McGuigan who put the DTrace provider into Mustang. Adam On Fri, Jul 08, 2005 at 10:05:21AM -0400, Alan Stange wrote:> Hello all, > > I''ve been playing a bit with dtrace recently and wanted to try it out on > some Java codes. I understand that the later mustang builds have dtrace > providers enabled. But, no matter what I try, I am unable to get > dtrace to work. Can someone please provide an example that works with > the mustang builds and not the -Xrun 1.5 versions? > > I have a java code running, and using dtrace to list all the providers I > don''t see anything that it java related. SO, I''m clearly missing something. > > Thanks! > > -- Alan Stange > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
Hi Alan, The latest mustang sources have the dtrace providers in them, but unfortunately the built binaries do not because the official mustang builds are made on Solaris 8 for sparc and x86. We''re working on a solution for enabling the providers even when built on Solaris 8 but we''re not quite there yet. In the meantime, if you build Hotspot manually on Solaris 10, or use the AMD64 version (which is built by default on Solaris 10), you should start seeing the providers. -- - Keith Adam Leventhal wrote:> Hi Alan, > > When you say that you can''t get DTrace to work, what have you tried > exactly? You should be able to do a dtrace -l as root and see the Java > provider. I''ve cc''ed Keith McGuigan who put the DTrace provider into > Mustang. > > Adam > > On Fri, Jul 08, 2005 at 10:05:21AM -0400, Alan Stange wrote: > >>Hello all, >> >>I''ve been playing a bit with dtrace recently and wanted to try it out on >>some Java codes. I understand that the later mustang builds have dtrace >>providers enabled. But, no matter what I try, I am unable to get >>dtrace to work. Can someone please provide an example that works with >>the mustang builds and not the -Xrun 1.5 versions? >> >>I have a java code running, and using dtrace to list all the providers I >>don''t see anything that it java related. SO, I''m clearly missing something. >> >>Thanks! >> >>-- Alan Stange >>_______________________________________________ >>dtrace-discuss mailing list >>dtrace-discuss at opensolaris.org > >
Keith McGuigan wrote:> Hi Alan, > > The latest mustang sources have the dtrace providers in them, but unfortunately > the built binaries do not because the official mustang builds are made on > Solaris 8 for sparc and x86. We''re working on a solution for enabling the > providers even when built on Solaris 8 but we''re not quite there yet. > > In the meantime, if you build Hotspot manually on Solaris 10, or use the AMD64 > version (which is built by default on Solaris 10), you should start seeing the > providers. >I was expecting something like this was going on. I used dtrace -P ''*vm*'' -l to try to find the jvm related probes and also dtrace -P ''*pid*'' -l where pid was the pid of the jvm process. When I didn''t see anything listed, I was beginning to think that the feature wasn''t enabled as part of the build process. When do you expect to have the providers enabled even though built on Solaris 8? If it''s next week, I''ll cool my heels till then. If it''s 3 months from now, then I''ll look into making my own build or using the 1.5 based libraries. Thanks for the help, -- Alan> -- > - Keith > > Adam Leventhal wrote: > >> Hi Alan, >> >> When you say that you can''t get DTrace to work, what have you tried >> exactly? You should be able to do a dtrace -l as root and see the Java >> provider. I''ve cc''ed Keith McGuigan who put the DTrace provider into >> Mustang. >> >> Adam >> >> On Fri, Jul 08, 2005 at 10:05:21AM -0400, Alan Stange wrote: >> >> >>> Hello all, >>> >>> I''ve been playing a bit with dtrace recently and wanted to try it out on >>> some Java codes. I understand that the later mustang builds have dtrace >>> providers enabled. But, no matter what I try, I am unable to get >>> dtrace to work. Can someone please provide an example that works with >>> the mustang builds and not the -Xrun 1.5 versions? >>> >>> I have a java code running, and using dtrace to list all the providers I >>> don''t see anything that it java related. SO, I''m clearly missing something. >>> >>> Thanks! >>> >>> -- Alan Stange >>> _______________________________________________ >>> dtrace-discuss mailing list >>> dtrace-discuss at opensolaris.org >>> >> > >
On Fri, Jul 08, 2005 at 11:37:05AM -0400, Alan Stange wrote:> I was expecting something like this was going on. > > I used dtrace -P ''*vm*'' -l to try to find the jvm related probes and > also dtrace -P ''*pid*'' -l where pid was the pid of the jvm process.That won''t work; to view the static userland providers for a given pid, you need to do: dtrace -P ''*pid'' -l (i.e. only a star *before* the pid); with a star after it, they won''t be auto-generated. Since everything links with libc, any pid will always have "plockstat" probes; if you aren''t seeing them, you know something is amiss. Cheers, - jonathan> When I didn''t see anything listed, I was beginning to think that the > feature wasn''t enabled as part of the build process. > > When do you expect to have the providers enabled even though built on > Solaris 8? If it''s next week, I''ll cool my heels till then. If it''s 3 > months from now, then I''ll look into making my own build or using the > 1.5 based libraries. > > Thanks for the help, > > -- Alan > > >-- > >- Keith > > > >Adam Leventhal wrote: > > > >>Hi Alan, > >> > >>When you say that you can''t get DTrace to work, what have you tried > >>exactly? You should be able to do a dtrace -l as root and see the Java > >>provider. I''ve cc''ed Keith McGuigan who put the DTrace provider into > >>Mustang. > >> > >>Adam > >> > >>On Fri, Jul 08, 2005 at 10:05:21AM -0400, Alan Stange wrote: > >> > >> > >>>Hello all, > >>> > >>>I''ve been playing a bit with dtrace recently and wanted to try it out on > >>>some Java codes. I understand that the later mustang builds have dtrace > >>>providers enabled. But, no matter what I try, I am unable to get > >>>dtrace to work. Can someone please provide an example that works with > >>>the mustang builds and not the -Xrun 1.5 versions? > >>> > >>>I have a java code running, and using dtrace to list all the providers I > >>>don''t see anything that it java related. SO, I''m clearly missing > >>>something. > >>> > >>>Thanks! > >>> > >>>-- Alan Stange > >>>_______________________________________________ > >>>dtrace-discuss mailing list > >>>dtrace-discuss at opensolaris.org > >>> > >> > > > > > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Jonathan Adams, Solaris Kernel Development
On Fri, Jul 08, 2005 at 11:37:05AM -0400, Alan Stange wrote:> When do you expect to have the providers enabled even though built on > Solaris 8? If it''s next week, I''ll cool my heels till then. If it''s 3 > months from now, then I''ll look into making my own build or using the > 1.5 based libraries.It''s almost certainly some time between a week and 3 months. We''re working on a DTrace linker package which will let developers build USDT providers on Solaris 8 and 9. Adam -- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl