Displaying 20 results from an estimated 7000 matches similar to: "all open files"
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 Apr 19
5
Available free memory.
Hi,
Can I use DTrace to determine memory status?
1.Total Physical Memory, Used Memory.
2.Total Swap Space and Used Swap Space.
I did find few DTrace scripts but had too much
in them and I am unable to chop off unwanted
lines of code due to lack of knowledge.
It will be very helpful if some one can share
the piece of code that serves my purpose as
mentioned above.
Regards,
Ramesh.
Ramesh
2007 Mar 05
2
Floating-Point Operator
Hi All:
Why are floating-point operators not supported in D Language?
Because they are useless in tracing programs?
Regards!
TJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070305/a0b4cf0e/attachment.html>
2005 Nov 25
28
ZFS and memcntl(..., MC_SYNC, ...)
It wouldn''t be proper to start my first post here without congratulations
and thanks to the ZFS team for such an impressive piece of work.
Anyway, on to my query. I''ve been trying out ZFS, with a particular focus in
reducing latency in a specific application. This application has a fair
amount of random writing going on in the background (which, of course, ZFS
will make
2006 Mar 24
3
Triggering on close of a written file.
I have just started my first ''serious'' dtrace script and can use some
advice.
I want to have a probe triggered when close() occurs after a
succesfull write of /etc/hosts ( I want to regenerate the nameserver
zone files
from /etc/hosts after it has changed)
At the moment I have the following code:
syscall::open*:entry,
syscall::creat*:entry
{
self->file=arg0;
2009 May 12
4
Controlling outbound bandwidth utilization by port
Among other things, I run an http server on my home DSL line
(6M/768kbit). The content includes several large image
galleries, and when certain crawlers hit our server w/
multiple large image uploads, we end up with large
ping time delays - sufficient to disrupt the kids''
on-line gaming. Attempts to control this with robots.txt
has not be very successful; Solaris IPQoS appears quite
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]
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:::
2005 Sep 27
2
Invalid address error message
Hi,
I ran a d-program with syscall::open:entry probe but got the following
error messages sometimes:
dtrace: error on enabled probe ID 1 (ID 14: syscall::open:entry): invalid
address (0xff34e000) in predicate at DIF offset 76
dtrace: error on enabled probe ID 6 (ID 14: syscall::open:entry): invalid
address (0xff34e000) in predicate at DIF offset 28
I don''t know how to interpret these
2006 Aug 08
9
Handling userland char ** pointers
I''ve been trying to get access to a userland string that''s behind a
second level pointer using DTrace, but I can''t seem to get it to work.
I started with the example on the Team DTrace Tips and Tricks slides:
trace(copyinstr(*(uintptr_t *)copyin(arg0, curpsinfo->pr_dmodel ==
PR_MODEL_ILP32 ? 4 : 8)));
And when I couldn''t get it to work, I started
2007 Jul 30
3
dtrace
hi fnds,
i want to print the filenames on which the stat system
call is acting when a stat system call is invoked. can anyone can help
me this regard.
Thanks
jeevan
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
2007 Mar 12
9
X2200-M2
After the interesting revelations about the X2100 and it''s hot-swap abilities,
what are the abilities of the X2200-M2''s disk subsystem, and is ZFS going to
tickle any wierdness out of them?
-brian
--
"The reason I don''t use Gnome: every single other window manager I know of is
very powerfully extensible, where you can switch actions to different mouse
buttons.
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?
2006 May 15
1
Sparse file support in Java?
Does anyone know if there is support in Java for creating holes in a
sparse file (like one can do via fcntl(F_FREESP) in C)? Would like to
avoid writing JNI code if there is already support for this somewhere in
the JDK.
Chuck
2008 Jul 07
2
copyin having secondary effects.
Dtracing gethostbyname I''m trying to read the h_alias array and all the entries it points to however every time I copyin an entry pointed to by the first entry in teh h_alias array the other entries in the array get corrupted.
So I have ended up with this script:
#!/usr/bin/dtrace -CZs
#include <netdb.h>
pid$target::gethostbyname_r:return
{
self->r = (struct hostent
2007 Jun 20
14
Z-Raid performance with Random reads/writes
Given a 1.6TB ZFS Z-Raid consisting 6 disks:
And a system that does an extreme amount of small /(<20K) /random reads
/(more than twice as many reads as writes) /
1) What performance gains, if any does Z-Raid offer over other RAID or
Large filesystem configurations?
2) What is any hindrance is Z-Raid to this configuration, given the
complete randomness and size of these accesses?
Would
2009 Aug 18
2
Change syslog output
Hy!
I receive an nxge driver messages on console:
Aug 18 11:08:42 [hostname] nxge: NOTICE: nxge_ipp_eccue_valid_check:
rd_ptr = XXX wr_ptr = YYY
I find the bug description/correction at sun web page, and i know i
can ignore it.
I thinking about how can i delete from console only these messages
(here is my first version, what is not (so) elegant):
#!/usr/sbin/dtrace -qs
#pragma D option
2009 Feb 27
7
Memory usage for C++ Application is growing
Hi ,
I have c++ server application in solaries 10 . Day by day memory usage is growing
i try to find memory leaks with MDB and DTRACE and no leaks found. how can we find reason for growing memory , can we know which memory sigment is cause for growing memory usage
Thanks in Advance.
Rao
--
This message posted from opensolaris.org
2007 Oct 01
1
strange problem on SXDE3
Strange problem on a desktop, 64 bit, SXDE3.
] ./jpg1.d
dtrace: failed to compile script ./jpg1.d: "/usr/lib/dtrace/iscsi.d",
line 94: syntax error near "uiscsiproto_t"
Doesn''t matter what script. Even classic oneliners such as:
] dtrace -n ''syscall::open*:entry { printf("%s %
s",execname,copyinstr(arg0)); }''
bomb in this way...
dtrace: