Hi All, I don''t know if this is the appropriate list, but I would like to see a repository or contributor''s directory of dtrace scripts. I have been teaching dtrace in classes for over a year now, and have scripts that I have collected from various places, as well as scripts that I have written for classes. It would be nice to be able to find scripts that others have written, as well as scripts I have written, all in one place. I don''t think this needs to wait for source code license issues to be worked out. The /usr/demo/dtrace directory is a nice start. Possibly a /usr/demo/dtrace/contrib directory? As long as I''m at it, how about a /usr/demo/mdb/contrib directory with community contributed dcmds and walkers? max _______________________________________________ DTrace mailing list DTrace@opensolaris.org https://www.opensolaris.org/mailman/listinfo/dtrace
can you find a place to host what you have and others have for this list? i can find space on a web account i have, but that will only be for this list, sorry i know the server and pipeline wont survive the slashdotting it will see when opensolaris goes public or if it is made public. after we have it combined, we can maybe get sun.com to take over and make some web space availble for them all. james On Tue, 21 Dec 2004 09:33:40 -0800 (PST), Max Bruning <max@bruningsystems.com> wrote:> > Hi All, > > I don''t know if this is the appropriate list, but I would like to see a > repository or contributor''s directory of dtrace scripts. I have been > teaching > dtrace in classes for over a year now, and have scripts that I have > collected from various places, as well as scripts that I have written for > classes. > It would be nice to be able to find scripts that others have written, as > well as > scripts I have written, all in one place. I don''t think this needs to > wait for > source code license issues to be worked out. > > The /usr/demo/dtrace directory is a nice start. Possibly a > /usr/demo/dtrace/contrib > directory? As long as I''m at it, how about a /usr/demo/mdb/contrib > directory > with community contributed dcmds and walkers? > > max > > _______________________________________________ > DTrace mailing list > DTrace@opensolaris.org > https://www.opensolaris.org/mailman/listinfo/dtrace >_______________________________________________ DTrace mailing list DTrace@opensolaris.org https://www.opensolaris.org/mailman/listinfo/dtrace
Hosting is not an issue. I can do hosting if needed. Rather, I would like this to be in one easy to find place. Preferably a sun site or even better, with the system (/usr/demo/dtrace/contrib). Perhaps sunfreeware.com (is Steven Christensen on this mail list)??? I find it easiest to learn (and teach) dtrace by looking at and hacking existing scripts. When I need a detail, I can look it up in the 400+ page dtrace guide. max> On Tue, 21 Dec 2004, James Dickens wrote: > >> can you find a place to host what you have and others have for this >> list? i can find space on a web account i have, but that will only be >> for this list, sorry i know the server and pipeline wont survive the >> slashdotting it will see when opensolaris goes public or if it is >> made public. > > We can provide space (of course on a s10 box ;-) and nice fat pipes to the > Internet for Dtrace scripts or other goodies. What else would be needed? > > Thomas > > >> >> after we have it combined, we can maybe get sun.com to take over and >> make some web space availble for them all. >> >> james >> >> >> >> On Tue, 21 Dec 2004 09:33:40 -0800 (PST), Max Bruning >> <max@bruningsystems.com> wrote: >>> >>> Hi All, >>> >>> I don''t know if this is the appropriate list, but I would like to see a >>> repository or contributor''s directory of dtrace scripts. I have been >>> teaching >>> dtrace in classes for over a year now, and have scripts that I have >>> collected from various places, as well as scripts that I have written >>> for >>> classes. >>> It would be nice to be able to find scripts that others have written, >>> as >>> well as >>> scripts I have written, all in one place. I don''t think this needs to >>> wait for >>> source code license issues to be worked out. >>> >>> The /usr/demo/dtrace directory is a nice start. Possibly a >>> /usr/demo/dtrace/contrib >>> directory? As long as I''m at it, how about a /usr/demo/mdb/contrib >>> directory >>> with community contributed dcmds and walkers? >>> >>> max >>> >>> _______________________________________________ >>> DTrace mailing list >>> DTrace@opensolaris.org >>> https://www.opensolaris.org/mailman/listinfo/dtrace >>> >> _______________________________________________ >> DTrace mailing list >> DTrace@opensolaris.org >> https://www.opensolaris.org/mailman/listinfo/dtrace >> >> >> > > ----------------------------------------------------------------- > PGP fingerprint: B1 EE D2 39 2C 82 26 DA A5 4D E0 50 35 75 9E ED > Phone: +49 731 50 22464 > FAX: +49 731 50 22471 >_______________________________________________ DTrace mailing list DTrace@opensolaris.org https://www.opensolaris.org/mailman/listinfo/dtrace
Hey Max,> I would like to use mdb dcmds/walkers within dtrace scripts. > I filed an RFE for this a while back. Basically, what I would like to do > is something like: > > foo:entry > /blah blah/ > { > mdb_cmd("%x::print struct foo", bar); /* bar could be an arg, or other > variable */ > mdb_cmd("::threadlist -v"); > mdb_cmd("%x::walk crud | ::mydcmd"); /* pipe output of a walker to my > dcmd */ > } > > Perhaps dtrace using mdb''s dmods...We intend to provide ::print-like abilities for DTrace; there has been an RFE open on this for a while: 4968681 would like ::printf-like functionality in DTrace ::walk functionality is much trickier, as there is no way to iterate over structures in D (in part because such iteration would violate the safety constraint).> Also, there is a way to do almost what I want using kmdb > via the breakpoint action, if I could somehow pass a string > with commands to breakpoint(). > Something like > > foo:entry > { > breakpoint("kmdb commands"); > }I think you''re the first person to ask about this. This is definitely within the realm of possibility; we''ll get an RFE open on this....> Speaking of kmdb (and mdb for that matter), does anyone know how to specify > multiple kmdb/mdb commands when you hit a break/watch point? > > I sometimes want to do something like: > > foo::bp "<i0::print struct arg0 :c" /* print first arg and continue from > debugger */If you can''t bring mdb to DTrace, bring DTrace to mdb? ;) You can do this by separating the commands with a semicolon: % mdb /usr/bin/date > main:b > :r mdb: stop at main mdb: target stopped at: main: pushl %ebp > malloc::bp -c "<esp/p ; :c" > :c 0x8047658: libc.so.1`calloc+0x4b 0x8047654: libc.so.1`_textdomain_u+0x5d 0x8047710: libc.so.1`get_zone+0x5a Tue Dec 7 22:59:36 PST 2004 mdb: target has terminated > And FWIW, one of things that we''ve talked about is adding rudimentary D support (and a DIF interpreter) to mdb -- which may well turn out to be an idea that''s more of an interesting idea than a good idea... - Bryan -------------------------------------------------------------------------- Bryan Cantrill, Solaris Kernel Development. http://blogs.sun.com/bmc _______________________________________________ DTrace mailing list DTrace@opensolaris.org https://www.opensolaris.org/mailman/listinfo/dtrace
On Tue, 21 Dec 2004, James Dickens wrote:> can you find a place to host what you have and others have for this > list? i can find space on a web account i have, but that will only be > for this list, sorry i know the server and pipeline wont survive the > slashdotting it will see when opensolaris goes public or if it is > made public.We can provide space (of course on a s10 box ;-) and nice fat pipes to the Internet for Dtrace scripts or other goodies. What else would be needed? Thomas> > after we have it combined, we can maybe get sun.com to take over and > make some web space availble for them all. > > james > > > > On Tue, 21 Dec 2004 09:33:40 -0800 (PST), Max Bruning > <max@bruningsystems.com> wrote: >> >> Hi All, >> >> I don''t know if this is the appropriate list, but I would like to see a >> repository or contributor''s directory of dtrace scripts. I have been >> teaching >> dtrace in classes for over a year now, and have scripts that I have >> collected from various places, as well as scripts that I have written for >> classes. >> It would be nice to be able to find scripts that others have written, as >> well as >> scripts I have written, all in one place. I don''t think this needs to >> wait for >> source code license issues to be worked out. >> >> The /usr/demo/dtrace directory is a nice start. Possibly a >> /usr/demo/dtrace/contrib >> directory? As long as I''m at it, how about a /usr/demo/mdb/contrib >> directory >> with community contributed dcmds and walkers? >> >> max >> >> _______________________________________________ >> DTrace mailing list >> DTrace@opensolaris.org >> https://www.opensolaris.org/mailman/listinfo/dtrace >> > _______________________________________________ > DTrace mailing list > DTrace@opensolaris.org > https://www.opensolaris.org/mailman/listinfo/dtrace > > >----------------------------------------------------------------- PGP fingerprint: B1 EE D2 39 2C 82 26 DA A5 4D E0 50 35 75 9E ED Phone: +49 731 50 22464 FAX: +49 731 50 22471 _______________________________________________ DTrace mailing list DTrace@opensolaris.org https://www.opensolaris.org/mailman/listinfo/dtrace
> Hosting is not an issue. I can do hosting if needed. Rather, I would > like this > to be in one easy to find place. Preferably a sun site or even better, > with the system (/usr/demo/dtrace/contrib). Perhaps sunfreeware.com > (is Steven Christensen on this mail list)???... Agreed. Bigadmin would be my preferred option. Maybe a dtrace collection? Thomas ----------------------------------------------------------------- PGP fingerprint: B1 EE D2 39 2C 82 26 DA A5 4D E0 50 35 75 9E ED _______________________________________________ DTrace mailing list DTrace@opensolaris.org https://www.opensolaris.org/mailman/listinfo/dtrace
Hi. I would like to use mdb dcmds/walkers within dtrace scripts. I filed an RFE for this a while back. Basically, what I would like to do is something like: foo:entry /blah blah/ { mdb_cmd("%x::print struct foo", bar); /* bar could be an arg, or other variable */ mdb_cmd("::threadlist -v"); mdb_cmd("%x::walk crud | ::mydcmd"); /* pipe output of a walker to my dcmd */ } Perhaps dtrace using mdb''s dmods... Also, there is a way to do almost what I want using kmdb via the breakpoint action, if I could somehow pass a string with commands to breakpoint(). Something like foo:entry { breakpoint("kmdb commands"); } Speaking of kmdb (and mdb for that matter), does anyone know how to specify multiple kmdb/mdb commands when you hit a break/watch point? I sometimes want to do something like: foo::bp "<i0::print struct arg0 :c" /* print first arg and continue from debugger */ I can specify multiple commands with separate breakpoints, but it is not the desired behaviour. thanks, max _______________________________________________ DTrace mailing list DTrace@opensolaris.org https://www.opensolaris.org/mailman/listinfo/dtrace