Displaying 20 results from an estimated 1000 matches similar to: "How accurate is "ustack"?"
2005 Aug 12
3
Funny output from write syscall
I have a clause that look like this:
syscall::write:entry
/execname == "ntpd" && self->recspec/
{
speculate(self->recspec);
printf(" fd=%d buf=%d\n%s",arg0,arg2,
stringof(copyin(arg1,arg2-1)));
}
The ntpd program always write a \n trminated string in this
context, so I used the "arg2-1" to drop the \n.
This works
2006 Feb 15
4
Script for Stackdepth by Thread/LWP?
I''m interested in monitoring the amount of stack used by a multi-threaded program. I assume ''stackdepth'' built-in would be useful...but not sure. Been through demo''s, ToolKit, and internals..but it''s just not clicking for me yet.
Not sure how to measure start/end of stack size dynamically...Anyone know how to break this down?
This message posted from
2008 Feb 12
1
measuring sleep time in synchronization objects
Hi,
I am fairly new to DTrace, and wanted to ask something regarding
synchronization objects.
I have a multithreaded C++ program in which I use semaphores (POSIX version)
for synchronization. I was interested in using DTrace to figure out the
total time for which each thread in my application sleeps, blocked on a
semaphore, i.e., as a result of sem_wait() call. In order to measure this, I
2008 Jun 07
2
Apple fixes DTrace
I''m pleased to pass along news that the Mac OS X DTrace port has been
updated
in 10.5.3 to fix the issue that caused timer based probes not to fire
in the
presence of certain untraceable applications.
http://blogs.sun.com/ahl/entry/apple_updates_dtrace
A big thank you to the folks at Apple for addressing the problem.
Adam
--
Adam Leventhal, Fishworks
2008 May 21
9
Slow pkginstalls due to long door_calls to nscd
Hi all,
I am installing a zone onto two different V445s running S10U4 and the
zones are taking hours to install (about 1000 packages), that is, the
problem is identical on both systems. A bit of trussing and dtracing has
shown that the pkginstalls being run by the zoneadm install are making
door_call calls to nscd that are taking very long, so far observed to be
5 to 40 seconds, but always in
2006 May 08
13
monitoring tcp writes
i''m using the following probe to calculate how many bytes are being written by tcp write calls, by process and total:
fbt:ip:tcp_output:entry
{
this->tcpout_size = msgdsize(args[1]);
@tcpout_size[execname] = sum(this->tcpout_size);
@tcpout_size["TOTAL_TCP_OUT"] = sum(this->tcpout_size);
}
I run this probe for N seconds.
I suppose that if i get the
2007 Jul 25
2
proc:::exit not firing
I have a funny issue whereby when a application exits the proc:::exit
probe doesn''t seem to be firing.
A customer has written a dtrace script that outputs some info whenever
proc:::exit fires but on occasion (random, no pattern in behaviour)
dtrace exits without outputting the data.
They are running dtrace via ''dtrace -s exit_trace.d -p <pid>''
Can anyone think
2006 Mar 03
10
CiscoWorks 2.5 Install on Solaris 10
I''m trying to install CiscoWorks 2.5 on Solaris 10 update 1, and after
the install when I try to start the daemon, it errors:
# /opt/CSCOpx/objects/dmgt/dmgtd.sol
ERROR: open file dmgtd failedERROR >>>>>>>>>>>>> open msg catalog
failed. NLSPATH incorrect or objects/share/nls/C/dmgtd.cat is missing.
# echo $NLSPATH
2009 Apr 23
2
Building ustack() helpers on OS X without -G
I am trying to integrate John Levon''s ustack() helper for Python into the
upstream Python sources. The method for doing this on Solaris is to compile the
phelper.d script containing the helper into an object file using "dtrace -G".
dtrace on OS X does not have "dtrace -G", just "dtrace -h". This works fine for
USDT probes, but I am at a loss on how to
2007 Jan 21
3
ustack() wrong in pid return probes?
I have a test program which has a call sequence of
a(), b(), c(), d().
When I place a pid return probe on d(), I get a ustack that
looks like this:
a.out`d+0x19
a.out`b+0xd
a.out`a+0xd
a.out`main+0x3c
a.out`_start+0x7a
The c() method appears to be missing.
I did some poking around and noticed that pid return probes
2005 Dec 21
1
ustack() issues && correlating SIGSEGV activity?
Howdy,
I was playing around with the malloc/free D script provided by
Philip Beevers:
http://www.opensolaris.org/jive/thread.jspa?threadID=4224&tstart=15
And decided to change the free:entry probe from:
pid24169::free:entry
/ sz[arg0] /
{
printf("Freeing %p (size %d)\n", arg0, sz[arg0]);
sz[arg0] = 0;
}
to:
pid24169::free:entry
/ ! sz[arg0] /
{
printf("[ *
2008 Oct 01
5
ustack()s of SIGSEGV''ed programs
Hi all,
I am trying to write a D script which would print ustack() for every
program in the system receiving SIGSEGV. All the stacks printed in
trap()/sigtoproc() context do not have meaningful symbols.
The following solves the problem to some degree but I''d much rather have
a self-contained D script.
dtrace -w -n ''fbt:genunix:sigtoproc:entry/arg2 == 11/ {
2008 Jan 11
25
DTrace in Perl: What probes should we have?
As of patch 32953 dtrace support is in bleadperl (5.11.0). The probes
are based on Alan Burlinson''s original blog post on the subject:
http://blogs.sun.com/alanbur/date/20050909
By guarding the probes with PERL_SUB_*_ENABLED the performance hit is
unmeasurable.
All the necessary bits already existed in the wild. I just assembled
them and made the necessary changes to
2007 Feb 13
2
How to print kernel global variable.
I am doing some testing on the adjtime syscall, and I want to
dump out the value of the kernel variable "timedelta", and I
am failing at it. Some of my attempts got "Module is no longer
loaded" and some got "Symbol table entry is not a data object"
I found some info that dtrace can print out kernel global
variable, so what am I missing here?
--
blu
"Remember
2006 Jan 12
5
dtrace and follow fork
I am trying to use dtrace to trace all sscanf calls.
I am able to use pid provider for this.
But my application forks off children at times to
handle requests.
Is there a way I can stop the child process
immediately after it is started so that
I can attach a pid provider to that and trace the
scanf calls in it?
I have tried using the "create" probe but that did
not help.
2010 Jun 14
7
OpenSolaris Sparc Xen boot problem
I am running OpenSolaris build 134 on a T1000 (Sparc).
It has been an uphill battle getting this far. Many of the commands I
find in the various documentation won''t work for me.
------------------------------------------------------------
steve@t1000:~# pfexec pkg install xvm-gui
Creating Plan
pkg: ''xvm-gui'' matches multiple packages
2008 Feb 11
0
Project proposal for enhanced ustack/jstack
Hello,
The Hotspot JVM Runtime group would like to put forth a project proposal
to improve the capabilities of DTrace''s ustack()/jstack() actions to
better handle non-standard user stack frames. This email will describe
the background, the problem, and our proposed solution. We''re
interested in getting a sponsor for this work to help us with the
process of getting the
2013 Oct 01
1
sonewconn: pcb 0xfffffe00c7223498: Listen queue overflow
Hello,
I updated our main server to 9.2-STABLE today and afterwards I noticed a
bunch of these messages, does anyone know what they mean? I was unable
to find anything on this error message. Things appear to be working OK
so far.
Sep 30 22:08:56 illidan kernel: sonewconn: pcb 0xfffffe00c7223498:
Listen queue overflow: 193 already in queue awaiting acceptance
Sep 30 22:12:27 illidan kernel:
2005 Dec 21
0
ustack() issues && correlating SIGSEGV activ ity?
Hi Ryan,
> Does anyone happen to know why the ustack() doesn''t show lex,
> yak, main
> and _start?
A quick look with the source browser seems to indicate that _rt_boot is code
executed very early in the lifetime of your process by ld.so.1. What seems
to be happening is that ld.so.1 has allocated some memory before DTrace got
control of your process - long before main() was
2010 May 31
2
Ignoring initial rows in a text file import
I am trying to import a series of text files generated by stimulus
presentation software. The problem that I am having is that the number of
rows I need to skip is not fixed (depending on subject's pretest behavior)
nor is the first row of the data I want always the same (the stimuli were
presented in random order). So I need to bring in the .txt file (using
readLines?), look for the row