Displaying 20 results from an estimated 6000 matches similar to: "dtrace on a kernel module _init()"
2005 Jul 15
0
Re: Debugging Linux binaries with Dtrace?
Hi Nils, all,
I tried the ''FBT-trick'' suggested below by Nils and (of course :-) ) it
works and gives me a pile of output. Good enough to show that indeed Linux
application behavior is not totally opaque, good enough to for instance show
that ''system call mapping'' is taking place.
I wonder, is there any documentation available for lxsyscall module ? To
learn
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;
2011 Apr 06
2
Limiting dtrace depth
If I use a simple dtrace script such as this:
fbt::somefunc:entry{self->trace=1;}
fbt::somefunc:return{self->trace=0;}
fbt:::entry{}
fbt:::return{printf("%lx", arg1);}
then it will descend to whatever depth is necessary
If I want to limit it to say 3 functions deep, how can I do that?
The quick answer I want to use is to do "self->depth++" on each entry
and then
2005 Aug 23
0
Duplication in dtrace''s forceload entries in /etc/system
Hi,
If you have a custom kernel (and therefore have duplicates of
everything in /kernel in your custom kernel) and have noticed that when
you try to use anonymous tracing, dtrace adds multiple copies of the
forceload directives to /etc/system, e.g.:
* vvvv Added by DTrace
*
* The following forceload directives were added by dtrace(1M) to allow for
* tracing during boot. If these
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
2005 Oct 11
7
dtrace: failed to initialize dtrace: DTrace device not available on system
I have a number of systems running solaris10 and i see the package and binary for dtrace installed however whenever we try to run anything we get this error
dtrace: failed to initialize dtrace: DTrace device not available on system
the only system in which i dont have this error is the development server that has the full solaris 10 install while others are minimized, do i need additional
2005 Aug 22
3
dtrace''ing at module unload time
Hi,
I am trying to trace some functions that are executed at detach time, and it seems that just
having dtrace around to instrument the module is causing a short circuit, whereas modunload will
return (device busy). I understand that this makes sense, but how can I get around this if I
want to trace stuff at detach time?
Thanks,
--S
2007 Jan 10
0
[DTrace] socketsnoop.d - TCP by PID
G''Day Folks,
Well, I had a weekend home in Sydney while inbetween flights and have
knocked out a few programs. (I''ve been programming for 23 hours straight,
so if there is something really dumb in one my scripts then please excuse
me :)
# socketsnoop.d
UID PID DIR SIZE CMD
0 19886 W 64 ssh mars
0 19886 R 80 ssh mars
0 19915 W 0
2006 Jun 30
2
Qs. on fbt::copystr: probe
Hi all,
I have questions about something I observed just now:
1) on AMD64, S10u1:
# dtrace -n ''fbt::copystr:entry{printf ("%p\n", args[0]);}'' -c /bin/pwd
dtrace: invalid probe specifier fbt::copystr:entry{printf ("%p\n",
args[0]);}: in action list: index 0 is out of range for fbt::copystr:entry
args[ ]
but
# dtrace -n ''fbt::copystr:entry{printf
2006 Oct 31
0
6256581 System got a hang or a panic with dtrace+kmdb
Author: bmc
Repository: /hg/zfs-crypto/gate
Revision: 213bfe03af413cdf71c523fb076aaa65a6306a7e
Log message:
6256581 System got a hang or a panic with dtrace+kmdb
6264573 unanchored dtrace_getpcstack is rather imprecise toward function end
6289517 dtrace doesn''t like fd_intr anymore
6291378 dtrace helpers can interfere with the use of kmdb
6295554 dtrace doesn''t report
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
2008 Feb 24
2
Can DTrace display non-instrumented function argument counts and types?
Is it possible to use DTrace to display the number of arguments and their types for userland or kernel functions that are not explicitly instrumented or documented by their authors? We''re talking about functions provided by Veritas VxVM/VxFS and the like, and for example, we might want to try tracing I/Os from App => VxFS => VxVM => ssd driver to see where I/Os get aggregated or
2006 Jun 03
1
man pages for each providers ?
Hey,
Do you guys think that is a good idea to have a manual page for each provider with a complete description of what probes are offered ? Found some already under 7D category:
dtrace dtrace (7d) - DTrace dynamic tracing facility
fasttrap fasttrap (7d) - DTrace user instruction tracing provider
fbt fbt (7d) - DTrace function boundary tracing provider
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:
2006 Jul 07
2
Probe ID changes
OK, I''ve been fritzing around with something I noticed last night,
thinking that I understood what was going on, but now it''s getting
confusing again.
A system that has been running for a couple of months had a hole in the
probe ID list near the end in the middle of the fbt probes. And then a
couple of syscall probes were stuck in the hole. It looked like this:
...
40311
2008 Aug 20
0
anonymous tracing
I''m using DTrace''s anonymous tracing feature to trace through device
drivers at boot time. With Solaris 10 Update 6 B5, I was unable to trace
fbt based calls from the sd attach point. The error messages from the
console are:
NOTICE: enabling probe 0 (fbt::sdattach:entry)
NOTICE: enabling probe 1 (fbt:::)
NOTICE: enabling probe 2 (fbt::sdattach:return)
NOTICE: enabling probe
2009 Mar 09
2
FBT Provider
Is there a list anywhere of the DTrace FBT provider calls for each version of Solaris since the Nevada build that hosed the DTrace Toolkit. I have no issue with rewriting what I need, but I am hoping to stave off having to look at all the source code to find everything. I know there is a new provider under development, but I need to be able to program DTrace routines for all the updates in
2008 May 14
3
tcptop_snv connp->conn_tcp != connp->conn_proto_priv.cp_tcp
Tried to start up tcptop_snv on snv87 x86 and got
<i>dtrace: failed to compile script /dev/fd/11: line 168: conn_tcp is not a member of struct conn_s</i>
Line 288 has this line:
<i>this->tcpp = (tcp_t *)this->connp->conn_tcp;</i>
which, after looking at line 168 of <a
2011 Oct 26
1
Problem running zilstat script on a core install server.
We cannot run the zilstat utility (from
http://www.richardelling.com/Home/scripts-and-programs-1/zilstat) on
an Solaris 10 u9 / x86 installed according SUNWCreq (which is a core
install)
while it works fine on a similar config but installed with all
packages (SUNWCXall)
So we know it works in this environment but it seems we miss an
essential package here. That causes the
dtrace: failed to
2006 Oct 23
4
how to watch kmem_init() during boot time
Hi,
Following "anonymous tracing" chapter, I wanna trace kmem_init(), but after reboot, I can''t get anything, why?
Here is my short script kmem_init.d:
#!/usr/sbin/dtrace -s
fbt::kmem_init:entry
{
stack();
}
then I just use:
#dtrace -AFs kmem_init.d
#reboot
#dtrace -ae
< got nothing here>
Thanks,
-Alex
This message posted from opensolaris.org