Displaying 20 results from an estimated 500 matches similar to: "dtrace reports different counts depending on what is being traced"
2008 May 20
6
Dtrace queries - predicates & func arg tracing
[1] Predicates in one-liners
I would like to list the probe modules in my executable and then
dynamically create a dscript to trace execution of those modules alone
(by excluding the 3rd party and system libraries). I tried the below
script without success. The conditional given in the predicate is not
taking effect. Why is this so ?
$ dtrace -ln ''pid$target:::
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);}
2006 Jan 07
3
Can I install CentOS 4.2 on Sun X4100?
Hi, all!
I want to change current RHEL 4.0 ES into CentOS 4.2 on Sun X4100 server.
The server has SAS SCSI based two 2.5" hard disks.
I could only install RHEL 4.0 Update 1 because the server is equipped with
RHEL 4.0 Update 1's device driver only.
I've included below the boot process messages concerned with SCSI controller.
If it's possible for me to install CentOS 4.0 on my
2006 Nov 10
3
aaccli on recent conrollers?
I have just built a new SunFire X4100 server with an Adaptec 2230SLP
RAID card using FreeBSD 6.2-PRE kernel (from September 20).
Everything is working extremely well except I cannot run the aaccli
utility on this controller. When I try to open the controller, it
gives this error:
Command Error: <The current AFAAPI.DLL is too old to work with the
current controller software.>
On
2007 Jul 11
5
Error trying to count return points in functions.
Whilst trying out some D to get an insight into what is the most
common reason for a given function to return, I have bumped
into an error I don''t understand.
The first take on what I was trying to do was:
# dtrace -n ''fbt:ip:ip_input:return{@home[arg0] = count();}''
and all was well. The next step was:
# dtrace -n
2009 Mar 20
1
suspicious dtrace results
i am doing reads and writes to /dev/rdsk/c0t2d0s4
using dtrace to see how much time it took for ssdread and ssdwrite. It shows very small number 4 or 5.
#pragma D option flowindent
syscall::pread:entry
{
self->trace = 1;
self->size = arg2;
}
syscall::pwrite:entry
{
self->trace = 1;
self->size = arg2;
}
fbt:ssd:ssdread:entry
/self->trace/
{
self->start = timestamp;
2006 Mar 01
3
vtimestamp skew, after restorectx()
Hello,
I''m using the below dtrace script to capture the flow and times of
kernel functions, from an ioctl() call. After an entry into
restorectx(), the trace of startimestamp - vtimestamp makes a dramatic
jump downwards. Here''s the snippet showing the jump...
6 -> di_checkmem 8 220176600
6 <- di_checkmem
2006 Sep 21
2
Probe description does not match any probes
[Perhaps someone could rename this list to dtrace-matt-problems-discuss?]
If I run this script against my binary (which contains a USDT probe called ''concurrentq-latency''):
:::
/ probename == "concurrentq-latency" /
{
printf("[%s]:[%s]:[%s]\n", probeprov, probefunc, probename);
}
I get this output:
dtrace: script ''testq.d'' matched 46056
2008 Sep 30
12
dtrace missing ''unlinkat''? showing process stack?
everyone,
Just out of curiosity, I did a
dtrace -n ''syscall:::entry { @num[execname, probefunc] = count(); }''
and looked at the entries produced by ''rm''.
I see everything that rm did, *except* the unlinkat - which is unfortunate because I want to trace which processes have deleted which files.
So - does dtrace contain unlinkat as a probe for a system call?
2007 Jun 29
1
dtrace and Xorg don''t always mix
I''m wondering if I should file a bug against this or is this just a case of a user doing something stupid :)
I ran the following script on my desktop:
#!/usr/sbin/dtrace -s
pid9276:::entry
{
@counting[probefunc] = count();
}
And my Xsession immediately crashed and through me back to the login screen. My OS is
5.11 snv_50 i86pc i386 i86pc with a dual core amd chip and 2G or
2007 Feb 15
2
profile provider: is it me doing stupid things?
Just showing someone how great DTrace is and then we spot something I do not understand.
Of course it can be a major misunderstanding of myself. Would appreciate another (expert) look upon this.
The goal we try to achieve is trying to get insight if there is a bursty nature in the time slot when system calls are done. Following DTrace snippet is tried:
dtrace -q -p 3173 -n
2011 Jan 05
0
dtrace-discuss Digest, Vol 69, Issue 2
Hello Srikant -
A quantization distributes the results of your aggregation into ranges
ordered by a power-of-two. Presumably what you''d do in your script is
capture the inclusive elapsed time of each function call in your library,
then use this quantization to see how tightly-banded the times are. Perhaps
there''s some blocking I/O in some of your calls, for example, in which
2008 Sep 09
1
DTrace and shared memory id
Hello all,
I saw this question about a year back in the archive[1], but with no
final answer.
I would like to trace shmget calls and also get the id of the shared
memory segment.
That script looked like[2], but we dont get the id since arg1 is the
errno value.
How do i access the shm id, i would need this to debug a customer
problem but i don''t have time to learn it the hard
2011 Jan 05
0
Understand the dtrace quantize output
Hi,
I am kind of new to DTrace , I have written a script to time function calls
in our application library ,
Wanted to know how to interpret the output from quantize of the elapsed time
in each function call , here is a sample
Here is the entry and return function for the library that is being traced
pid$1:libswduar::entry
{
duarEntry[probefunc] = timestamp;
2009 Mar 28
4
mac_srs_rx_poll_ring thread never stop polling hardware in kernel
Recently I found that the mac_srs_rx_poll_ring thread may never stop in
kernel, please see the following mpstat, cpu 2 is in 100% kernel usage, but
no syscalls and no interrupts.
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt
idl
0 0 0 0 300 100 0 0 1 0 0 0
0 0 0 100
1 14 0 0 134 68 134 1
2006 Mar 14
3
Adaptec AIC9410
Can anyone tell me if/when the Adaptec AIC9410 SAS/SATA controller
will be supported?
Michael Grant
2007 Mar 09
4
USDT probe issues in C++
Hi people,
When working with some usdt C++ probes we have come across a few issues.
Controlling USDT Function name:
Putting in usdt probes into C++ code gives you the mangled enclosing
function name for the probes Function name. Working around this can be a
pain. You need to wrap your usdt probes in extern C functions and call
these. Could we have an option to control the Function name for
2006 May 24
2
Reading external files with dtrace
I''d like to be able to dynamically read external configuration files within a dtrace script. I know dtrace allows inclusion of C header files but only at the preprocessing stage.
What we need to do is dynamically enable/disable probes based on current application settings. I''d rather not have a bunch of independant scripts running and being started and killed whenever the
2006 Nov 29
1
TCP checksum change in RPC replies within XEN, NFS lockup (SLES10)
Hello,
my apologies for not being sure whom to tell this problem, but it is very strange.
Let me tell the story:
I''m using XEN (3.0.2) with SLES10 (x86_64, SunFire X4100). On one machine I have
three virtual machines ("DomU") that are very identically configured (SLES10
x86_64 also). There is also a SLES9 (i386) acting as a multi-homed NFS server.
I can mount and access a
2006 Feb 09
6
gcc4 compiler warnings
Hi all!
The following files emits warnings when compiled with gcc 4.0:
al175.c
bcmxcp_ser.c
belkinunv.c
cyberpower.c
everups.c
powercom.c
solis.c
All warnings seem to be of this variety:
everups.c:38: warning: pointer targets in passing argument 2 of 'ser_get_char' differ in signedness
I suggest that those who fiddles with those drivers fixes the warnings
and verifies that it works