Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dtrace]

DTrace is a comprehensive dynamic tracing framework for the Solaris Operating Environment.

0
votes
0answers
8 views

a lack of DTrace probes of mysql@5.6 installed via brew under macOS

I installed mysql@5.6 via brew (brew install mysql@5.6) under my macOS, but when I run sudo dtrace -ln 'mysql*:::', comparing to Table 5.6 MySQL DTrace Probes there are only a few probes listed, sudo ...
2
votes
0answers
265 views

Tools to debug slow NFS on OSX

I have 2 mac pros connected to a Nexenta NAS. They have a fast network connection, the same ping time, and the routes to the server are the same (both are plugged into the same switch). One computer ...
1
vote
1answer
52 views

Modifying standard DTT scripts to use -c instead of $1

There are lots of great dtrace programs out there and some of them require a PID to be passed to them, in order for them to trace that PID. Inside the dtrace scripts that argument is stored in $1. Is ...
2
votes
0answers
63 views

osx dtruss doesn't report opening ~/.bash_profile while tracing bash?

Let's assume I have this line at the start of my ~/.bash_profile: echo "*** THIS IS ~/.bash_profile RUNNING ***" On a Linux machine (Ubuntu 14.04), I can inspect which files bash loads at startup ...
3
votes
0answers
126 views

Unix OSX invisible process, how do I identify further information?

Using execsnoop -v, I note a dtrace error for two processes. ID3 (ID 630) and ID2 (ID 360). ~ 03:59 am ∆:ps -p 260 PID TTY TIME CMD 260 ?? 0:02.36 /usr/libexec/UserEventAgent (Aqua) ...
2
votes
1answer
55 views

How to measure changes to the filesystem done by a certain application? [closed]

I am using a command line application which creates a great amount of intermediate artifacts to the file system and then at some point deletes them. On environments where storage space is constrained ...
10
votes
1answer
4k views

Error on enabled probe: syscall::open_nocancel:entry): invalid user access in action #2 at DIF

I've the following one-liner to show files opened by process: sudo dtrace -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); }' however I've plenty of repeated errors such as: ...
6
votes
1answer
935 views

Finding the source of CoW page faults on OS X

I'm trying to find the source of CoW page faults in some C code on OS X. I would like to use the vminfo DTrace provider, but vminfo isn't available on OS X. On Linux, I can use SystemTap to print a ...
0
votes
1answer
45 views

Uprobes Status on the present linux kernel

I know uprobes was introduced on kernel 3.5 has it survived or is it dropped, is it still available on kernel 4.x
6
votes
2answers
7k views

Measure disk IO latencies of a running process

I'm trying to measure the disk IO latencies of a running process to make a histogram. I could do this with DTrace in operating systems that provide it (e.g. as in this Joyent paper), but my ...
4
votes
1answer
621 views

Are there awk versions that provide syntax for computing aggregations?

From time to time I find myself writing awk scripts that compute some simple statistics. For example computing a histogram, the average of a value, the standard deviation or even the variance ... ...
3
votes
2answers
874 views

Java process, swap (/proc Solaris10) memory highly utilized

How can I analyze high swap memory utilization of Solaris 10 for Java processes?
5
votes
1answer
591 views

DTrace to trap any chmod applied to certain files

Underneath the Mac OS X directory /audit I have certain files which users can access and chmod to their liking. I need to audit any chmod done on any files by recording the time, user and file being ...