Hi all, Am new to Dtrace and sun solaris. In my sun solaris sytem, if i give dtrace -l, its lists the following...> dtrace -lID PROVIDER MODULE FUNCTION NAME 1 dtrace BEGIN 2 dtrace END 3 dtrace ERROR But in most of the tutorials i refered, there are many more providers like profile,syscalls etc. How do I get those providers also into my Solaris OS. Pls don mind if the doubt is very elementry as I am very new to it. Thank you, Arun This message posted from opensolaris.org
Arun wrote:> Hi all, > Am new to Dtrace and sun solaris. In my sun solaris sytem, if i give dtrace -l, its lists the following... > >> dtrace -l > ID PROVIDER MODULE FUNCTION NAME > 1 dtrace BEGIN > 2 dtrace END > 3 dtrace ERROR > > But in most of the tutorials i refered, there are many more providers like profile,syscalls etc. How do I get those providers also into my Solaris OS. > Pls don mind if the doubt is very elementry as I am very new to it.this is just a guess: do you have all the necessary privileges? When you run ''dtrace -l'' as root, is the result the same? Michael -- Michael Schuster Sun Microsystems, Inc. Recursion, n.: see ''Recursion''
Arun, Do a "modinfo -l" and look for modules dtrace, systrace, sdt, profile, lockstat, fbt, and fasttrap. I''ve got a feeling that you''ll only find dtrace. However, on a full Solaris install, these modules should load automatically. If most of the above are not present, is it possible that your Solaris install is something less then complete. Check for packages SUNWdtrp and SUNWdtrc. If the packages are installed, then I would guess the device entries for the modules aren''t configured. Check out the DTrace discussion at http://www.opensolaris.org/jive/thread.jspa?messageID=14383㠯 . It''s a similar issue. Chip Arun wrote:> Hi all, > Am new to Dtrace and sun solaris. In my sun solaris sytem, if i give dtrace -l, its lists the following... > > >> dtrace -l >> > ID PROVIDER MODULE FUNCTION NAME > 1 dtrace BEGIN > 2 dtrace END > 3 dtrace ERROR > > But in most of the tutorials i refered, there are many more providers like profile,syscalls etc. How do I get those providers also into my Solaris OS. > Pls don mind if the doubt is very elementry as I am very new to it. > > Thank you, > Arun > > > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >
Arun, OK, the link I copied straight out of the browser didn''t work. So try this one instead: http://www.opensolaris.org/jive/thread.jspa?messageID=14383 Chip Chip Bennett wrote:> Arun, > > Do a "modinfo -l" and look for modules dtrace, systrace, sdt, profile, > lockstat, fbt, and fasttrap. > > I''ve got a feeling that you''ll only find dtrace. However, on a full > Solaris install, these modules should load automatically. If most of > the above are not present, is it possible that your Solaris install is > something less then complete. Check for packages SUNWdtrp and > SUNWdtrc. If the packages are installed, then I would guess the > device entries for the modules aren''t configured. Check out the > DTrace discussion at > http://www.opensolaris.org/jive/thread.jspa?messageID=14383㠯 . > It''s a similar issue. > > Chip > > Arun wrote: >> Hi all, >> Am new to Dtrace and sun solaris. In my sun solaris sytem, if i give >> dtrace -l, its lists the following... >> >> >>> dtrace -l >>> >> ID PROVIDER MODULE FUNCTION NAME >> 1 dtrace BEGIN >> 2 dtrace END >> 3 dtrace ERROR >> >> But in most of the tutorials i refered, there are many more providers >> like profile,syscalls etc. How do I get those providers also into my >> Solaris OS. >> Pls don mind if the doubt is very elementry as I am very new to it. >> >> Thank you, >> Arun >> >> >> This message posted from opensolaris.org >> _______________________________________________ >> dtrace-discuss mailing list >> dtrace-discuss at opensolaris.org >> > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org
FYI. Thank you Michael,> I actually have not created a session as I don have > the privilege, I have created a session on another Sun Os(not solaris > but), and have logged in using rlogin. Is that a problem???? Can you > elaboarte please???Michael wrote: privileges are properties of users/roles - they have nothing to do with how you log in. Also, I don''t understand your reference to "session" in this context. so: because with DTrace you can theoretically watch a lot of "private" things (like passwords), you (either your user account or a role you can assume) need certain privileges. If you don''t have these privileges, the number of probes you can watch is greatly reduced (see "man privileges") That''s what I suspect is the reason for what you''re seeing as well, and your reaction confirms it - you''d *know* if you had the necessary privileges. Use this command to see for yourself: $ ppriv $$ this is the output I get (yes, I *have* the privileges, but this is my workstation :-): 3072: /bin/bash flags = <none> E: basic,dtrace_kernel,dtrace_proc,dtrace_user I: basic,dtrace_kernel,dtrace_proc,dtrace_user P: basic,dtrace_kernel,dtrace_proc,dtrace_user L: all $ HTH The output I get is-> the output I get is ppriv $$ 15756: -tcsh flags = <none> E: basic,dtrace_proc I: basic,dtrace_proc P: basic,dtrace_proc L: all I don''t get dtrace_kernel and dtrace_user. May be you are right...I don have the privilege Thanks a lot for the efforts you took... regards, Arun DK Chip, I couldnt view the other probes as I din hav access. thank you very much for your suggestions and help.... This message posted from opensolaris.org