Could someone help me figure out what''s wrong with this script... sample.d plockstat$target:::mutex-acquire { } plockstat$target:::mutex-release { } $ dtrace -s sample.d -c ls dtrace: failed to compile script sample.d: Error in D program compilation Thanks Jayaram
Which build of solaris/open solaris are you using? Jayaram Bobba wrote On 08/23/07 10:08,:>Could someone help me figure out what''s wrong with this script... > >sample.d > >plockstat$target:::mutex-acquire >{ >} > >plockstat$target:::mutex-release >{ >} > > >$ dtrace -s sample.d -c ls >dtrace: failed to compile script sample.d: Error in D program compilation > > >Thanks >Jayaram >_______________________________________________ >dtrace-discuss mailing list >dtrace-discuss at opensolaris.org > >
I believe it is build28. I will confirm tomorrow. Do you know how I could figure it out from an installed system? $ uname -a SunOS xxxxxxxxxxxxxxx 5.11 snv_34 sun4v sparc SUNW,Sun-Fire-T200 Surya.Prakki at Sun.COM wrote:> Which build of solaris/open solaris are you using? > > Jayaram Bobba wrote On 08/23/07 10:08,: > > >> Could someone help me figure out what''s wrong with this script... >> >> sample.d >> >> plockstat$target:::mutex-acquire >> { >> } >> >> plockstat$target:::mutex-release >> { >> } >> >> >> $ dtrace -s sample.d -c ls >> dtrace: failed to compile script sample.d: Error in D program compilation >> >> >> Thanks >> Jayaram >> _______________________________________________ >> dtrace-discuss mailing list >> dtrace-discuss at opensolaris.org >> >> >>
That''d be Build 34... We are into the 70''s now... :) For what it''s worth, it worked just fine for me using nv_65. You should really look to get into something more current. :) Cheers! Nathan. Jayaram Bobba wrote:> I believe it is build28. I will confirm tomorrow. Do you know how I > could figure > it out from an installed system? > > $ uname -a > SunOS xxxxxxxxxxxxxxx 5.11 snv_34 sun4v sparc SUNW,Sun-Fire-T200 > > Surya.Prakki at Sun.COM wrote: >> Which build of solaris/open solaris are you using? >> >> Jayaram Bobba wrote On 08/23/07 10:08,: >> >> >>> Could someone help me figure out what''s wrong with this script... >>> >>> sample.d >>> >>> plockstat$target:::mutex-acquire >>> { >>> } >>> >>> plockstat$target:::mutex-release >>> { >>> } >>> >>> >>> $ dtrace -s sample.d -c ls >>> dtrace: failed to compile script sample.d: Error in D program compilation >>> >>> >>> Thanks >>> Jayaram >>> _______________________________________________ >>> dtrace-discuss mailing list >>> dtrace-discuss at opensolaris.org >>> >>> >>> > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org
Thanks a lot. At least I know now that I am syntactically correct. I hope my admin''s can bail me out here. Would it be possible to upgrade dtrace without having to re-build the whole system? Any ideas about rewriting the script to do the same thing? Thanks Nathan Kroenert wrote:> That''d be Build 34... > > We are into the 70''s now... > > :) > > For what it''s worth, it worked just fine for me using nv_65. > > You should really look to get into something more current. :) > > Cheers! > > Nathan. > > > Jayaram Bobba wrote: >> I believe it is build28. I will confirm tomorrow. Do you know how I >> could figure >> it out from an installed system? >> >> $ uname -a >> SunOS xxxxxxxxxxxxxxx 5.11 snv_34 sun4v sparc SUNW,Sun-Fire-T200 >> >> Surya.Prakki at Sun.COM wrote: >>> Which build of solaris/open solaris are you using? >>> >>> Jayaram Bobba wrote On 08/23/07 10:08,: >>> >>> >>>> Could someone help me figure out what''s wrong with this script... >>>> >>>> sample.d >>>> >>>> plockstat$target:::mutex-acquire >>>> { >>>> } >>>> >>>> plockstat$target:::mutex-release >>>> { >>>> } >>>> >>>> >>>> $ dtrace -s sample.d -c ls >>>> dtrace: failed to compile script sample.d: Error in D program >>>> compilation >>>> >>>> >>>> Thanks >>>> Jayaram >>>> _______________________________________________ >>>> dtrace-discuss mailing list >>>> dtrace-discuss at opensolaris.org >>>> >>>> >>>> >> _______________________________________________ >> dtrace-discuss mailing list >> dtrace-discuss at opensolaris.org
Jayaram Bobba wrote:> Thanks a lot. At least I know now that I am syntactically correct. > I hope my admin''s can bail me out here.Sounds like an excellent case for you to put to them in favour of getting them to run an OS that was released this year rather than one which was released 15+ months ago.> Would it be possible to upgrade dtrace without having to re-build the > whole system?No. DTrace is an integral part of the kernel, and you cannot de-couple changes in it.> Any ideas about rewriting the script to do the same thing?No. Upgrade. James C. McPherson -- Solaris kernel software engineer Sun Microsystems
Hi Jayaram, This sounds vaguely familiar; I think you may be hitting this bug: 6395902 use of USDT probes can cause plockstat and other scripts to fail It was fixed in build 36 of Nevada. Adam On Thu, Aug 23, 2007 at 12:12:47AM -0500, Jayaram Bobba wrote:> I believe it is build28. I will confirm tomorrow. Do you know how I > could figure > it out from an installed system? > > $ uname -a > SunOS xxxxxxxxxxxxxxx 5.11 snv_34 sun4v sparc SUNW,Sun-Fire-T200 > > Surya.Prakki at Sun.COM wrote: > > Which build of solaris/open solaris are you using? > > > > Jayaram Bobba wrote On 08/23/07 10:08,: > > > > > >> Could someone help me figure out what''s wrong with this script... > >> > >> sample.d > >> > >> plockstat$target:::mutex-acquire > >> { > >> } > >> > >> plockstat$target:::mutex-release > >> { > >> } > >> > >> > >> $ dtrace -s sample.d -c ls > >> dtrace: failed to compile script sample.d: Error in D program compilation > >> > >> > >> Thanks > >> Jayaram > >> _______________________________________________ > >> dtrace-discuss mailing list > >> dtrace-discuss at opensolaris.org > >> > >> > >> > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl