All, we''re considering instrumenting the daemon we''re developing for our project with SDT probes, and were a little surprised that a few cursory(sp?) searches didn''t reveal any examples for this - does that mean a) we didn''t search enough b) we''re treading where no man has gone before c) there''s some inherent issues with this? We''d appreciate any insight/feedback/pointers. thx Michael -- Michael Schuster http://blogs.sun.com/recursion Recursion, n.: see ''Recursion''
Hi, A deamon is a *normal* process. The controling terminal, and other stuff may be thrown away during the daemonization process, but DTrace should still work. As an example, MySQL also uses SDT, and MySQL is run as a daemon as well. Rayson On 3/26/09, Michael Schuster <Michael.Schuster at sun.com> wrote:> All, > > we''re considering instrumenting the daemon we''re developing for our project > with SDT probes, and were a little surprised that a few cursory(sp?) > searches didn''t reveal any examples for this - does that mean > a) we didn''t search enough > b) we''re treading where no man has gone before > c) there''s some inherent issues with this? > > We''d appreciate any insight/feedback/pointers. > > thx > Michael > -- > Michael Schuster http://blogs.sun.com/recursion > Recursion, n.: see ''Recursion'' > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >
Michael Schuster wrote:> All, > > we''re considering instrumenting the daemon we''re developing for our > project with SDT probes, and were a little surprised that a few > cursory(sp?) searches didn''t reveal any examples for this - does that mean > a) we didn''t search enoughOr didn''t use the right search terms? Xsun, Xorg, and apache httpd are all daemons with USDT probes in. For Xsun/Xorg, the details & diffs are posted at: http://people.freedesktop.org/~alanc/dtrace/ For apache, google of "apache httpd dtrace" finds a number of hits, this one looks most relevant: http://prefetch.net/projects/apache_modtrace/index.html -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering
Rayson Ho wrote:> Hi, > > A deamon is a *normal* process. The controling terminal, and other > stuff may be thrown away during the daemonization process, but DTrace > should still work.I know, that''s why I''m a little surprised that I couldn''t find any examples.> > As an example, MySQL also uses SDT, and MySQL is run as a daemon as well.ah ... that''s not in ON, that''s why :-) thx Michael> Rayson > > > > On 3/26/09, Michael Schuster <Michael.Schuster at sun.com> wrote: >> All, >> >> we''re considering instrumenting the daemon we''re developing for our project >> with SDT probes, and were a little surprised that a few cursory(sp?) >> searches didn''t reveal any examples for this - does that mean >> a) we didn''t search enough >> b) we''re treading where no man has gone before >> c) there''s some inherent issues with this? >> >> We''d appreciate any insight/feedback/pointers. >> >> thx >> Michael >> -- >> Michael Schuster http://blogs.sun.com/recursion >> Recursion, n.: see ''Recursion'' >> _______________________________________________ >> dtrace-discuss mailing list >> dtrace-discuss at opensolaris.org >>-- Michael Schuster http://blogs.sun.com/recursion Recursion, n.: see ''Recursion''
Hello Michael, Thursday, March 26, 2009, 3:19:18 PM, you wrote: MS> All, MS> we''re considering instrumenting the daemon we''re developing for our project MS> with SDT probes, and were a little surprised that a few cursory(sp?) MS> searches didn''t reveal any examples for this - does that mean MS> a) we didn''t search enough MS> b) we''re treading where no man has gone before MS> c) there''s some inherent issues with this? MS> We''d appreciate any insight/feedback/pointers. Could be slightly outdated but I believe still should be useful as a starting point. See http://mediacast.sun.com/users/alan.hargreaves at sun.com/media/sdtprobes.pdf/details -- Best regards, Robert Milkowski http://milek.blogspot.com