Displaying 20 results from an estimated 4000 matches similar to: "can Dtrace be used for the error injection?"
2008 Jun 16
1
"stuck" in kmdb due to dtrace breakpoint()
So I realize this is somewhat stupid, and I''ve actually gotten myself out of kmdb to kill my dtrace script but this has happened in the past and I''m wondering if there''s any better way around it than hitting :c a bunch of times.
Say you set a breakpoint() to fire in a common function. This will drop you into kmdb where you can do some debugging, you take a look around
2006 Apr 05
23
DTrace as a security tool / http://systrace.org
I''d like to see if we can use DTrace to as the kernel implementation of
the BSD systrace security policy system (http://www.systrace.org). I
don''t really want to port systrace to Solaris because I think with
DTrace we already have all the necessary in kernel hooks to do this.
With systrace you express things like: "httpd can bind to port 80 but
not any other port, it
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
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
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
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
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 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
2009 Jul 19
5
How to disable checksum offloading for OSOL DomU via kmdb at initial boot ?
Adding -kd to extra line drops me to kmdb :-
root@ServerJaunty:/home/boris/nevada# xm create -c osol.install
Using config file "./osol.install".
Started domain osol.install (id=4)
Loading kmdb...
Welcome to kmdb
Loaded modules: [ unix krtld genunix ]
[0]>
I want patch kernel like it happens when adding to /etc/system:-
set xnf:xnf_cksum_offload = 0
2006 Mar 03
1
zfs? page faults
Hi,
I have setup an old Compaq Proliant DL580 with 2 xeon @700MHz 2Gb RAM
two SmartArray 5300 controllers and 12 drives in an array enclosure.
I am running the latest opensolaris update bfu''ed from binaries since I
could not build from source. I am controlling the drives with the
cpqary3 driver (Solaris 10) from HP.
Initially the array had 7 drives and I created a raidz zfs pool
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
2008 Oct 30
7
Is there any way to check if DTrace is running or a DTrace probe is enabled?
Hi,
I am adding DTrace probes within NFS v3 client. In my current
implementation, I use some tsd_*() functions and kmem_zalloc() function.
These functions might be heavy and affect the performance. I want to
call this function only when DTrace is running or the DTrace probes are
enable. So is there a way to check DTrace is running or DTrace probe is
enabled?
Regards,
Danhua
2006 Mar 13
2
opensolaris dtrace page has bad link to dtrace documentation
The open solaris dtrace page (http://www.opensolaris.org/os/community/dtrace/) has a bad link to the DTrace Guide(http://docs.sun.com/db/doc/817-6223).
This message posted from opensolaris.org
2007 Jan 10
2
[DTrace] using C preprocessor in dtrace scripts
Hi Max/DTrace list,
> At any rate, without the -C, I can''t use #include <sys/stream.h>.
> Without the #include <sys/stream.h>, I can''t use the M_DATA.
> As it is, I get the following:
>
> # ./strrput.d 0xd595a6c0 <-- this is a vnode for a socket
> ftp is using (not important here)
> dtrace: failed to compile script ./strrput.d: line 7:
>
2008 Nov 07
6
Dtrace command
Hi All,
Can I get Dtrace command, which is useful for regular system administration like performance issue.
Advance Thanks
Muthu
--
This message posted from opensolaris.org
2007 Nov 27
4
DTrace unconference?
All,
With Jon Haslam''s exciting news about the DTrace doc wiki (if you haven''t
seen it yet, make your way to http://wikis.sun.com/display/DTrace), and with
some of the discussion with the Apple folks, I''m wondering if the time
isn''t right for something of a DTrace summit, perhaps as an unconference.
The idea here would not be a DTrace user group (though that
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
2007 Oct 17
3
Dtrace scripts for performance data gathering
I am looking for Dtrace scripts that can be used to
collect data during performance tests. I am especially
interested in IO but CPU, memory, threads, etc are needed
as well.
Thanks,
Dave
2008 Feb 26
4
Why dtrace doesn''t work on some workstation?
Dtrace does work on some workstation, such as as follows,
-----------------------------------------------------------
bash-3.00# dtrace -s ./mem.d `pgrep test`
dtrace: script ''./mem.d'' matched 5 probes
^C
bash-3.00# uname -a
SunOS ftp 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Blade-100
bash-3.00# dtrace -V
dtrace: Sun D 1.1
2008 Aug 19
3
variables in dtrace scripts
Greetings,
is there a way to specify probes and other dtrace operations via command
line parameters, like
"
BEGIN
{
usr_exec=$$1;
usr_syscall=$$2;
}
syscall::usr_syscall:entry
/execname == usr_exec && guard++ == 0/
{
...
"
[this does not work]
This would make it possible to create "generic" dtrace scripts.
Otherwise, some shellscript with sed-magic would