Skip to main content

Questions tagged [dtrace]

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

2 votes
1 answer
49 views

I've come across the following DTrace one-liner on https://wiki.freebsd.org/DTrace/One-Liners: # Summarize TCP life span in seconds: dtrace -n 'fbt::tcp_close:entry { @["TCP life span (...
Mateusz Piotrowski's user avatar
1 vote
1 answer
53 views

I'd like to understand why calling chill() in a DTrace action block increases the timestamp variable, but not vtimestamp and walltimestamp. Here's an example showing timestamp increasing after a call ...
Mateusz Piotrowski's user avatar
3 votes
1 answer
77 views

I'd like to be able to concatenate a string and an int using strjoin(), e.g., strjoin("ada", args[1]->unit_number); but in order to do that I have to make sure that the int is first ...
Mateusz Piotrowski's user avatar
2 votes
1 answer
269 views

I'm having a problem and need to print out to the console all files that are being access each time bash is executed on macOS. Is there a relatively easy method for doing this? Perhaps dtrace might ...
ylluminate's user avatar
2 votes
0 answers
595 views

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 ...
Dan's user avatar
  • 9,642
1 vote
1 answer
111 views

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 ...
Junaid Shahid's user avatar
2 votes
0 answers
137 views

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 ...
sdaau's user avatar
  • 7,168
3 votes
0 answers
215 views

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) ...
Cam_Aust's user avatar
  • 131
2 votes
1 answer
89 views

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 ...
carlossless's user avatar
14 votes
1 answer
7k views

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 ...
kenorb's user avatar
  • 22.1k
6 votes
1 answer
1k views

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 ...
Aaron Patterson's user avatar
0 votes
1 answer
103 views

I know uprobes was introduced on kernel 3.5 has it survived or is it dropped, is it still available on kernel 4.x
SAS's user avatar
  • 31
7 votes
2 answers
9k views

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 ...
ajduff574's user avatar
  • 233
4 votes
1 answer
736 views

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 ... ...
maxschlepzig's user avatar
  • 59.8k
3 votes
2 answers
972 views

How can I analyze high swap memory utilization of Solaris 10 for Java processes?
Vishal's user avatar
  • 131

15 30 50 per page