Displaying 20 results from an estimated 1100 matches similar to: "Signal id and signal sender pid using dtrace"
2006 Sep 21
1
Dtrace script compilation error.
Hi All,
One of the customer is seeing the following error messages.
He is using a S10U1 system with all latest patches.
Dtrace script is attached.
I am not seeing these error messages on S10U2 system.
What could be the problem?
Thanks,
Gangadhar.
------------------------------------------------------------------------
rroberto at njengsunu60-2:~$ dtrace -AFs /lib/svc/share/kcfd.d
dtrace:
2011 Jan 18
2
Surprise Thread Preemptions
Hi,
I would like to know about which threads will be preempted by which on my OpenSolaris machine.
Therefore, I ran a multithreaded program "myprogram" with 32 threads on my 24-core Solaris machine. I make sure that each thread of my program has same priority (priority zero), so that we can reduce priority inversions (saving preemptions -- system overhead). However, I ran the following
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 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.
2013 Mar 06
3
[LLVMdev] embedding trace functions to generate variable values
Hi,
This is my first post on this forum so please use soft batons (-;
I'm wondering if there is feature already in LLVM or clang to embed
variable tracing instructions in the compiled output, so that on execution
of the program, a dump of various variables values over time is generated.
It's a little like the old unix program ctrace[1], but using LLVM, instead
of rewriting C
2006 Nov 16
6
DTrace hooks for CPU caps
Hello DTracers,
The CPU caps project (http://www.opensolaris.org/os/project/rm/rctls/cpu-caps/)
introduces kernel "wait queues" where threads may be placed to enforce caps.
I would like to make this visible through DTrace and to add two new probes to
the sched provider with the following semantics:
cpucaps-sleep Probe that fires immediately before the current thread is
placed on a
2013 Mar 06
0
[LLVMdev] embedding trace functions to generate variable values
On 3/6/13 4:39 AM, Vardhan Varma wrote:
>
> Hi,
> This is my first post on this forum so please use soft batons (-;
>
> I'm wondering if there is feature already in LLVM or clang to embed
> variable tracing instructions in the compiled output, so that on
> execution
> of the program, a dump of various variables values over time is
> generated.
>
>
2008 Jun 26
4
Pfilestat vs. prstat
[Just starting out with DTrace and was hoping to get some guidance.]
I have a "benchmark" program that I monitored with both prstat (prstat -mL -P <PID>) and pfilestat (from the DTrace toolkit). Prstat reports LAT values in the 0.1-0.2% range, but pfilestat reports "waitcpu" values in the 6-10%. Since those two numbers supposedly represent time waiting for the CPU,
2005 Sep 08
3
DTrace typewriter
G''Day Folks,
I''ve found another use of dtrace, this makes your console keyboard
sound like a typewriter.
http://www.brendangregg.com/DTrace/typewriter-0.70.tar.gz
I''ve only tested it on an UltraSPARC 5 and a Pentium laptop so far, more
to follow.
Ok, sorry, not actually a practical use of DTrace. :)
Enjoy!
Brendan
[Sydney, Australia]
2006 Sep 06
3
Dtrace Snooping
Dear dtrace Experts,
I have seen some dtrace utilities like opensnoop and execsnoop etc.
My interest is to write a simple script that can snoop the files which
uses the 3 syscalls like open,create,unlink.
I have gone through dtrace oneliners that can do the same :
dtrace -n ''syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0));}''
dtrace -n
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 Aug 19
5
How accurate is "ustack"?
I have been doing some profiling using the profile provider. I have a
command that runs more slowly on the T1000 than it does on prior
systems and I am trying to find out why. Using the profile provider at
1000 hz, and aggregating on the ustack output, I find that the same
function appears at the top of the stack on both platforms, but on
each there are specific instruction locations within
2005 Jun 29
10
TCP Snoop & wrapper shell script posted
Hi ,
I have posted DTrace script to snoop tcp traffic and also provided a
wrapper script
for it to filter out unwanted traffic.
http://blogs.sun.com/roller/comments/raviswam/Weblog/tcp_snoop_using_dtrace
Please let me know if you have any feedback/comments on this.
Thanks
Ravi
2009 Nov 18
7
Measuring cpu migrations
Hi,
I am looking to measure how long a thread takes to migrate between cpu''s and how often , what I have is below which is checking just one process is this the correct track to be on here?
My aim is to look at a process and look at upping the reboose_interval on some of our servers.
#!/usr/sbin/dtrace -s
sched:::off-cpu
{
self->cpu = cpu;
self->timestamp=timestamp;
}
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
2006 May 30
2
regular expression on predicates
is there a way to place regular expressions on predicates like ~ in awk such that
/execname ~ prog/ matches all executables with the ''prog'' substring? thanks.
This message posted from opensolaris.org
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
2005 Sep 14
4
How to get full path name of execname?
Hi,
Is there a way to print out full path name of execname when the following
probe is touched?
proc:genunix:exec_common:exec-success
Thanks.
************************************************
* C P Lin, Common Technology Project Lead. *
* Sun Microsystems Inc. *
* E-Mail: c.lin at sun.com *
* Address: 4150 Network Circle,
2006 Jun 06
1
[Fwd: Persistent "Abort due to systemic unresponsiveness"]
Just adding a few more details to the previous mail so that I can avoid
some trouble for you folks.
1. I have done a /execname != "dtrace"/ to avoid dtrace itself causing
more syscalls to be fired.
2. I have also supressed the printing on the terminal which makes dtrace
slower.
And what happens is this:
dtrace -qn ''syscall::read:entry /execname != "dtrace"/ {
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/ {