search for: mynhier

Displaying 11 results from an estimated 11 matches for "mynhier".

2009 Aug 28
13
putting a running app into trace mode
Suppose I have a USDT probe in Firefox and that I''m trying to catch the startup with a probe like this: proc:::exec-success /execname == "firefox-bin"/ { start = timestamp; } and stop tracing when Firefox hits this USDT probe: mozilla:::main-entry { exit(0); } How do I put the running firefox-bin into "trace mode" so that my USDT probe fires? Thanks, Joel
2008 Apr 01
10
Request for code review: the brendan() action
...- with the resulting output: ------------------------------------------------------------------------ Tracing... Hit Ctrl-C to end. ------------------------------------------------------------------------ I''ve put up a webrev for this at the following URL: http://cr.opensolaris.org/~cmynhier/brendan/ [1] http://www.brendangregg.com/dtrace.html
2008 Jul 24
5
printa stddev error
Hi, Searched for similar errors and nothing came up. Anybody know what this is? When using aggregate stddev, and then trying to print it at END, using printa, I get this error: dtrace: processing aborted: Invalid return value from callback avg works fine. Tried on two recent builds of solaris (build 89 and build 94), on two difference sparc systems. Here''s a sample script:
2009 Apr 17
4
unable to find any probes from the nfs provider
I want to list/use the nfs probes but I get the error "dtrace: failed to match nfs*:::: No probe matches description". Is there a way to enable nfs provider probes? My system is running snv_112 (bfu''ed from the gate archive) # dtrace -lP nfs* ID PROVIDER MODULE FUNCTION NAME dtrace: failed to match nfs*:::: No probe matches
2006 Jul 17
2
SMF/process contracts in Solaris 10
...aemons that have been started manually from someone's ssh session. I've fixed this problem locally by patching sshd.c with the contract-specific code from Sun's sshd.c. I would submit a patch based on that, but I'm not fully aware of the OpenSSH policy on Sun's ssh code. Chad Mynhier
2009 Sep 09
4
usdt probes vs pid$target
I added a couple of static probes to Firefox to measure actual work done. I could have used a pid$target probe with a function name but work is done within an if statement, which is where I placed the static probes. I''m wondering about my use, though. Is the following significantly more efficient than pid$target::FunName:entry and return? I heard somewhere that $target does not
2009 Feb 18
4
tracing aio syscalls
Hi all, Is there some documentation or some example on how to interpret the arg0 .. arg<n> for the aioread, aiowrite, aiowait syscalls? The system call name for all three seems to be "kaio". Michael === Michael Mueller ================== Tel. + 49 8171 63600 Fax. + 49 8171 63615 Web: http://www.michael-mueller-it.de ======================================
2008 Mar 04
0
Determining curthread pointer (ulwp_t) via libproc on i386
...than walk that list. (I''m trying to match %pc against the thread-local scratch space, so I have a way of searching that list.) (I haven''t come up to speed on understanding the Intel architecture segmentation stuff, so I''m hoping someone can help out here.) Thanks, Chad Mynhier
2009 Sep 09
4
what is the +hex in c++ stack traces?
What is the hex number after the method, e.g. +0x32f below? It matches arg0 and I suspect it''s the c++ "this" pointer, aka hidden first argument. I would like to confirm, though. Thanks, Joel --- XUL`PresShell::ProcessReflowCommands(int)+0x32f XUL`PresShell::FlushPendingNotifications(mozFlushType) +0x19e
2009 Jul 24
9
getting extra characters with printf(copyin(a, b))
Hi, I have a situation where a DTrace script is printing out extra characters, despite the copyin() call giving a specific length. Can anyone think of why this might be? It''s fine the first time all of the probes fire, but on a second run of my generating operations, I get junk in there. For example: set setop length 5, FOUND KEY, STORED set setop length 5, FOUND KEY, STORED get
2006 Feb 17
3
CPU time stats
hi, I am trying to find out the avg cpu time spent in each of my user methods (exclusive of other methods invoked by a method). Hence the following snippet failed miserably: ----------------------- pid$target:a.out::entry { time[probefunc] = timestamp;} pid$target:a.out::return { @spent[probefunc] = avg(timestamp - time[probefunc]);} END { printa(@spent);}