Re: [dtrace-discuss] dtrace script

2011-12-24 Thread James Carlson
On Dec 23, 2011, at 13:29, Anne Adema aron.ad...@gmail.com wrote: Hi James, What I'm looking for in a while true loop to see amount fopen calls for a certain pid while true do cmd for amount fopen call for certain pid dtrace script sleep 60 done or dtrace script with same loop

Re: [dtrace-discuss] dtrace script

2011-12-23 Thread James Carlson
to determine what sort of solution might help you. -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] concatenate structure members into one variable

2011-11-08 Thread James Carlson
like to solve? The output is: Id: 11E109F8702B323E9CAF5000568000D0 Is that output wrong ... ? -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] concatenate structure members into one variable

2011-11-08 Thread James Carlson
of the sampled data.) -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] concatenate structure members into one variable

2011-11-08 Thread James Carlson
) \ ((uint64_t)(d4)[6]8) \ ((uint64_t)(d4)[7])) so you can treat that last one as an integral quantity. -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace

Re: [dtrace-discuss] following a packet from sendto() to wire (and reverse)

2011-08-25 Thread James Carlson
/ { } syscall::sendto:return /self-trace/ { self-trace = 0; } -- James Carlson 42.703N 71.076W carls...@workingcode.com CPU FUNCTION 3 - sendto32 3 - sendto32 3 - sendto

Re: [dtrace-discuss] general documentation of all dtrace probes

2010-11-24 Thread James Carlson
that wrote the code, and likely not even that. You might want to review the dtrace stability level information in the tracing guide. -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss

Re: [dtrace-discuss] general documentation of all dtrace probes

2010-11-24 Thread James Carlson
quite a few by searching the web (in addition to the ones in /usr/demo/dtrace). If you don't feel that's a good path for you, then you might want to search around for layered tools built on top of dtrace and/or consultants who can help with the task you have at hand. -- James Carlson 42.703N

Re: [dtrace-discuss] save and recall more than one value of the same thread

2010-10-26 Thread James Carlson
in a predicate of another probe? self-fd[port] -- where port needs to be the fd. Depending on the definition of the probe and the way you write your code, port might be argv0, or it might be self-port, or perhaps something else. -- James Carlson 42.703N 71.076W carls

Re: [dtrace-discuss] dtrace: no struct definition available

2010-10-11 Thread James Carlson
it to be included. Most likely, your D script depends on an implementation artifact, and this is an early warning that the underlying code you're trying to use may change incompatibly without warning. -- James Carlson 42.703N 71.076W carls...@workingcode.com

Re: [dtrace-discuss] values from a struct

2010-09-24 Thread James Carlson
multiple, and they're executed in the order they appear in the file. -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] values from a struct

2010-09-17 Thread James Carlson
it and fetch the contents, still another to look at the sa_family, and so on. -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] values from a struct

2010-09-17 Thread James Carlson
seeing unexpected behavior here, it's time to start dumping everything -- start by printing out the length of the structure that's being copied (perhaps that's wrong) and the first few bytes of the structure to see if it's what you expect. -- James Carlson 42.703N 71.076W carls

Re: [dtrace-discuss] How does DTrace find the proc_t definition?

2010-06-09 Thread James Carlson
CTF. -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] tcptop and tcpsnoop

2010-05-12 Thread James Carlson
has run an architecture review board for 20 years, and why Oracle continues to do so. -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] tcptop and tcpsnoop

2010-05-11 Thread James Carlson
bet is to contact either the dtrace toolkit's author or Oracle's customer support group for help. It's not that S10 is unknown on these OpenSolaris lists, but so much has changed since then that discussion here is sometimes less than helpful. -- James Carlson 42.703N 71.076W carls

Re: [dtrace-discuss] Need some help

2010-03-15 Thread James Carlson
as though they were a kernel pointer. That's not going to work. You might want this: this-ptr = copyin(arg1, 10); tracemem(this-ptr, 10); -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss

Re: [dtrace-discuss] Replacing libumem's debug with dtrace?

2010-03-11 Thread James Carlson
*/ backtrace(optr + 2, sizeof (*obj) / sizeof (*optr) - 2); That way, when you dump, you'll be able to see where the first free came from. -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace

Re: [dtrace-discuss] new dtrace toolkit?

2010-03-09 Thread James Carlson
work. -- James Carlson 42.703N 71.076W carls...@workingcode.com ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] fire probe when parent is foo

2009-06-15 Thread James Carlson
Jonathan Adams writes: Always predicate this with '/self-flag/', or threads which are currently in 'foo' when tracing is started will trace all activity after it returns. Yep; noted by meem as well. Sorry about that omission. -- James Carlson, Solaris Networking james.d.carl

Re: [dtrace-discuss] fire probe when parent is foo

2009-06-12 Thread James Carlson
/ { printf(hi there); } fbt::foo:return { self-flag--; } -- James Carlson, Solaris Networking james.d.carl...@sun.com Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677

Re: [dtrace-discuss] TCP provider

2009-05-12 Thread James Carlson
[2]-ip_ver==4args[4]-ipv4_protocol==6/ { @[args[2]-ip_saddr] = count(); }' You might also want to look at the tcp-trace-* sdts; see /usr/demo/dtrace/tcprst.d. -- James Carlson, Solaris Networking james.d.carl...@sun.com Sun Microsystems / 35 Network Drive71.232W Vox +1 781

Re: [dtrace-discuss] dtrace at startup

2009-05-06 Thread James Carlson
Mike Gerdts writes: http://alexeremin.blogspot.com/2009/01/boot-chart-with-help-of-dtrace-and.html http://www.milax.org/img/pybootchart.png Wow. gdmgreeter sure sticks out there. -- James Carlson, Solaris Networking james.d.carl...@sun.com Sun Microsystems / 35 Network Drive

Re: [dtrace-discuss] no Dtrace hooks for monitoring ddi put/get

2009-02-12 Thread James Carlson
suitable because it requires that the driver is taken off-line) This is CR 4969919. Yes, it's extremely annoying when debugging drivers, and the RE has suggested that it be closed as will not fix. -- James Carlson, Solaris Networking james.d.carl...@sun.com Sun Microsystems / 35

Re: [dtrace-discuss] Just like WindView

2009-01-05 Thread James Carlson
be DTRACE_PROBE() in dtrace. See: http://wikis.sun.com/display/DTrace/Statically+Defined+Tracing+for+User+Applications -- James Carlson, Solaris Networking james.d.carl...@sun.com Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA

Re: [dtrace-discuss] lsof vs Dtrace

2008-12-12 Thread James Carlson
what his system is actually doing. Unfortunately, that faith is at least a little misplaced due to the nature of reading from live kernel memory. -- James Carlson, Solaris Networking james.d.carl...@sun.com Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS

Re: [dtrace-discuss] Show file descriptors returned by pipe()

2008-11-25 Thread James Carlson
kernel implementation details, so it's highly dependent on how your system is put together. Check out: http://wikis.sun.com/display/DTrace/Stability and try this: dtrace -ev -n syscall::pipe:return -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35

Re: [dtrace-discuss] DTrace Analytics open source?

2008-11-11 Thread James Carlson
of technologies that where made available so others could build on them. You could be right, but I don't think this is really the right forum to debate Sun's (or really anyone's) marketing choices. It's unlikely to change things. -- James Carlson, Solaris Networking [EMAIL PROTECTED

Re: [dtrace-discuss] Parameters TCP

2008-10-16 Thread James Carlson
== tcp_conn_req_max_q0 || self-tcppa-tcp_param_name == tcp_conn_req_max_q/ { printf(set %s: from %d to %s\n, stringof(self-tcppa-tcp_param_name), self-tcppa-tcp_param_val, stringof(arg2)); } -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems

Re: [dtrace-discuss] Silly error messages.

2008-09-02 Thread James Carlson
. Delete the commit(...); from the first one, and the speculate(...); and printing from the second. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1

Re: [dtrace-discuss] dtrace_probe#() disassembly

2008-06-16 Thread James Carlson
Rafael Vanoni writes: I was looking at some assembly on mdb and noticed that calls to DTRACE_PROBE1() were seen as ~5 nops. Could anyone explain me why's that ? That's where the probes are patched in at run time. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun

Re: [dtrace-discuss] mblk chains?

2008-06-11 Thread James Carlson
- this-mp3-b_rptr; } and repeat a few times to catch as many cases as you feel is necessary. (Perhaps add an assertion at the end to make sure you run out of b_conts in all of the cases of interest.) -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network

Re: [dtrace-discuss] mblk chains?

2008-06-11 Thread James Carlson
entries is something that'll handle chains of length 1 and 2, but nothing longer. (Note that it's customary to check for the first M_DATA message in the chain before counting up bytes, and I didn't do that ...) -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35

Re: [dtrace-discuss] mblk chains?

2008-06-11 Thread James Carlson
of dtrace is that it's safe to use, scripts that run forever cannot be allowed. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677

Re: [dtrace-discuss] What is wrong with this code?

2008-06-04 Thread James Carlson
question ... for which I don't have an answer. But for what it's worth, I always copy the information I want to save across probe clauses into scalars in 'self-'. I don't really trust pointers here. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network

Re: [dtrace-discuss] can i use if/else/for/while in dtrace script?

2008-06-04 Thread James Carlson
the separate probe points. this is local to a single probe clause. this-test wouldn't work here. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1

Re: [dtrace-discuss] can i use if/else/for/while in dtrace script?

2008-06-04 Thread James Carlson
Roman Shaposhnik writes: On Wed, 2008-06-04 at 14:06 -0400, James Carlson wrote: self is local to the thread executing, and thus crosses the boundaries between the separate probe points. this is local to a single probe clause. this-test wouldn't work here. That's why I asked

Re: [dtrace-discuss] Capability of memory overwritten detection

2008-04-16 Thread James Carlson
everyone's work, print out the code on paper, and go through it line-by-line looking for problems. - Staring at a core dump until your eyes bleed: the usual way to deal with problems at a recalcitrant customer site. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun

Re: [dtrace-discuss] Invalid address in action

2008-02-22 Thread James Carlson
seeing the last time you posted ... ?) -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677

Re: [dtrace-discuss] Missing syscall provider probes for unlinkat(2) and friends?

2008-02-05 Thread James Carlson
be to create an abi provider that maps into the stable programming interface, and leave syscall alone. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N

Re: [dtrace-discuss] Missing syscall provider probes for unlinkat(2) and friends?

2008-02-04 Thread James Carlson
and the latter is a standard interface. I agree that it'd be nice to throw a few bones at the poor user when he does something obvious and still wrong, but I agree that it's just a pig. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W

Re: [dtrace-discuss] ARC case for Contract 'decoration' with service FMRI

2008-01-17 Thread James Carlson
used might be needed. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 ___ dtrace-discuss

Re: [dtrace-discuss] Getting total memory allocated so far

2008-01-02 Thread James Carlson
of block freed. Using env LD_PRELOAD=libumem.so myapp with mdb's umem support should get you that (plus quite a bit more). -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA

Re: [dtrace-discuss] Aggregations and negative values

2007-11-01 Thread James Carlson
provides a signed type, do signed arithmetic. (Just like the Fortran intrinsic functions. ;-}) -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1

Re: [dtrace-discuss] Aggregations and negative values

2007-11-01 Thread James Carlson
? -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 ___ dtrace-discuss mailing list dtrace

Re: [dtrace-discuss] Capture of loopback interface messages

2007-08-30 Thread James Carlson
. -- James Carlson, Solaris Networking [EMAIL PROTECTED] Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 ___ dtrace-discuss mailing list dtrace