Displaying 17 results from an estimated 17 matches for "flowind".
Did you mean:
flowing
2008 Oct 21
5
Why could I get function names from a stripped exec?
Hello, all experts.
When I use pid provider, my Dscript with -F option output the codepath with flowindent as you know,
e.g.
-> main
-> f1
-> f2
however I realized that the exec file I used at that time was stripped.
Does anyone know the reason why I could see the function names?
Thanks in advance.
--
This message posted from opensolaris.org
2006 Dec 07
2
System hangs when invoking DTrace script
Howdy,
I installed Nevada build 49 in a parallels VM on my intel mac mini,
and when I run the following DTrace script:
$ cat follow.d
#pragma option D flowindent;
pid$target:::entry,
pid$target:::return
{}
$ cat format.cmds
disk
0
exit
$ dtrace -s follow.d -o follow.out -c "/usr/sbin/format -f format.cmds"
dtrace: script ''follow.d'' matched 13641 probes
The system hangs, and the following error is written to the console
and...
2005 Nov 15
6
Oracle 9 process on Sol 10 container, doing a pollsys, using high CPU
...in CPU %, doing a [i]pollsys [/i](see it via dtruss). I tried using some of the trace scripts in the Dtracetoolkit to see what the process is doing, but without any luck - also tried with the following, but dtrace process goes up to 30% CPU, then I kill it:
#!/usr/sbin/dtrace -s
#pragma D option flowindent
pid14344::select:entry
{
self->follow = 1;
}
pid14344:::entry,
pid14344:::return
/self->follow/
{}
pid14344::select:return
/self->follow/
{
self->follow = 0;
exit(0);
}
- any help would be appreciated.
Thanks,
Kenneth
This message posted from opensolaris...
2013 Jan 13
2
[LLVMdev] [cfe-dev] Do you use UML utility programs?
Oh I see. Thank you. I will study that.
Journeyer
2013/1/13 Sean Silva <silvas at purdue.edu>:
> You can easily collect this information with DTrace on a Mac (or
> Solaris or FreeBSD) without any special LLVM instrumentation.
>
> -- Sean Silva
--
----------------------------------------
Journeyer J. Joh
o o s a p r o g r a m m e r
a t
g m a i l d o t c o m
2013 Jan 13
0
[LLVMdev] [cfe-dev] Do you use UML utility programs?
On Sat, Jan 12, 2013 at 10:00 PM, Journeyer J. Joh
<oosaprogrammer at gmail.com> wrote:
> Oh I see. Thank you. I will study that.
You will want to use the pid provider. The most basic thing you can
probably do is to turn on flowindent and just trace
`pid$target:::entry' and `pid$target:::return`, which will trace all
the function calls and returns. This blog post
<http://cuddletech.com/blog/pivot/entry.php?id=923> gives an example
of the script I'm thinking of (this is one of the most basic DTrace
scripts).
Als...
2006 Mar 01
3
vtimestamp skew, after restorectx()
...5
97200 81726329100
I''m assuming since it is now running on a new proc, that it''s related to
a context switch, and perhaps the per-CPU dtrace buffers. Is there any
way around this?
Jim
-------------------------------
#!/usr/sbin/dtrace -s
#pragma D option flowindent
#pragma D option bufsize=4m
syscall::ioctl:entry
/arg1 == 0xDF07/
{
self->level=0;
self->start = vtimestamp;
}
:::entry
/self->start/
{
self->level++;
ts[probefunc]=vtimestamp;
trace(self->level);
trace(vtimestamp - self->start)...
2007 Jan 10
13
[DTrace] how to get socket read size
Hi
i''m trying to write my first dtrace script apparently i bit off a bit
more than i can chew, i want to track io over sockets, i found your
socketsize.d that gave me how to track writes, but i''m at a loss how
to track reads, frankly i don''t see how your write tracker works
because it uses a probe in a function that only takes two arguments
but you grab size of write
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.
2005 Jul 15
0
Re: Debugging Linux binaries with Dtrace?
...scall handler and the PID provider doesn''t understand the Linux runtime
> linker.
>
> That''s not to say that Linux application behavior is totally opaque. You
> can get some indication of what an application is doing with the FBT
> provider:
>
> # dtrace -x flowindent -n ''fbt:lxsyscall:: {}''
>
> and then refine the probes from there.
>
>
>>I have a simple demo where I fiddle around with xterm and gnome-terminal on
>>S10 x86. When I do exactly the same using a gnome-terminal binary from
>>Linux, dtrace just go...
2006 Oct 31
0
6256581 System got a hang or a panic with dtrace+kmdb
...6315035 enablings containing USDT probes are not dynamically reevaluated
6315037 cannot aggregate on the return value of some subroutines
6315039 including <sys/kstat.h> in a D script induces compile-time error
6315087 stack() not correctly printed for 32-bit consumers on amd64 kernel
6315975 flowindent should operate on any probe ending in "-entry"/"-return"
6317350 symbol tables should not be discarded for UNDEAD processes
Files:
update: usr/src/cmd/dtrace/dtrace.c
update: usr/src/cmd/fm/modules/sun4u/USII-io-diagnosis/iod_main.c
update: usr/src/cmd/fm/modules/sun4u/cp...
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;
self->minor = getminor(arg0);
}
fbt:ssd:ssdread:return
/self->start/
{
@avrg[pid,prob...
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);}
2008 Dec 02
18
How to dig deeper
In order to get more information on IO performance problems I created the script below:
#!/usr/sbin/dtrace -s
#pragma D option flowindent
syscall::*write*:entry
/pid == $1 && guard++ == 0/
{
self -> ts = timestamp;
self->traceme = 1;
printf("fd: %d", arg0);
}
fbt:::
/self->traceme/
{
/* elapsd =timestamp - self -> ts;
printf(" elapsed : %d" , elapsd); */...
2009 Nov 02
5
User process probe. Stack depth and flow indent skips and mismatches.
Hi Folks,
I''m trying to use DTrace to understand some complex code using the
user process probe.
Things are basically not matching up. When I use a variable to track
depth, sometimes it jumps. Similarly, the flow indent seems off.
I read another post saying that this is caused by missing return
statements in functions.
2008 Nov 23
4
Visualizing a call graph
Hello all,
I have been taking basic steps with DTrace and subscribed today to
this list. I have written a simple DTrace script to trace all the
function entry/exit from a given function:
#pragma D option flowindent
pid$1::*mysql_select*:entry
{
self -> start = vtimestamp ;
}
pid$1::*mysql_select*:return
/self -> start/
{
self -> start =0 ;
}
pid$1:::entry,
pid$1:::return
/self->start/
{
trace (vtimestamp - self->start);
}
sample output:
0 -> __1cMmysql_select6FpnDTHD_pppnEItem_...
2006 Mar 01
6
Dtrace not working for processes running after a couple of hours
Hi, all,
I''m a newbie on dtrace and the problem I am having is:
For processes which have been running for more than a couple of
hours, dtrace doesn''t seem to be able to trace(I waited for at least one
hour and didn''t see anything happening). However, it works every time
for a relatively new process.
Any insight or help will be appreciated.
This is my machine:
2009 Nov 19
11
dtracing a forked process OR dynamic library
Hi,
I am tracking down a problem and would like to know how I can follow a
forked process with my dtrace script, or how I can trace a dynamic library.
Here is the problem. I am tracing dtlogin, and specifically I am trying
to determine what error libpkcs11`<routine> is returning. It turns out
dtlogin forks a lot of processes, and I believe the second forked
process is the one that winds