Questions tagged [dtrace]

DTrace is a comprehensive dynamic tracing framework for the Solaris Operating Environment, Mac OS X 10.5+ and FreeBSD.

DTrace is a comprehensive dynamic tracing framework for the Solaris Operating Environment; it provides a powerful infrastructure to permit administrators, developers, and service personnel to concisely answer arbitrary questions about the behavior of the operating system and user programs.

DTrace can be used to get a global overview of a running system, such as the amount of memory, CPU time, file-system and network resources used by the active processes. It can also provide much more fine-grained information, such as a log of the arguments with which a specific function is being called, or a list of the processes accessing a specific file.

Resources

266 questions
1
vote
1 answer

Fixing 'no symbolic type information' from dtrace in Linux?

Just documenting this: (self-answer to follow) I'm aware that Sun's dtrace is not packaged for Ubuntu due to licensing issues; so I downloaded it and built it from source on Ubuntu - but I'm having an issue pretty much like the one in Simple dtraces…
sdaau
  • 36,975
  • 46
  • 198
  • 278
1
vote
1 answer

dtrace: failed to compile script probe description pid29441::*Slave_open_temp_tables*:return does not match any probes?

Due to this problem, I'm going to use dtrace to find out what the slave SQL thread is doing with temporary tables follow this guide. Here is my script: #!/usr/sbin/dtrace -s #pragma D option quiet dtrace:::BEGIN { printf("Tracing... Hit Ctrl-C…
quanta
  • 3,960
  • 4
  • 40
  • 75
1
vote
1 answer

Node.js profiling with Dtrace not showing functions names

I'm trying to profile CPU utilization for my project using DTrace. I just followed the script The problem is that it doesn't show the functions names. The stacks.out file looks like that: CPU ID FUNCTION:NAME 0 73700 …
David Lojudice Sb.
  • 1,302
  • 1
  • 15
  • 26
1
vote
1 answer

Dtrace to get write size by distribution

I'm trying to get write size distribution by process. I ran: sudo dtrace -n 'sysinfo:::writech { @dist[execname] = quantize(arg0); }' and got the following error: dtrace: invalid probe specifier sysinfo:::writech... This is Mac OSX. Please…
1001b
  • 265
  • 3
  • 13
1
vote
1 answer

How to print a NSString from a DTrace script

This question is asking the same thing, but when I tried: typedef long long ptr_t; objc$target:NSWindow:-setTitle?:entry { printf( "%30s %10s %x %x %x\n", probemod, probefunc, arg0, arg1, arg2 ); this->str =…
ericg
  • 8,413
  • 9
  • 43
  • 77
1
vote
1 answer

How to use dtrace to detect file transfer

I want to use "dtrace" to track file tranfer in OSX 10.8 , like when command "mv /folder1/file1 /folder2" is run . I know there're probes like create/link/unlink/rename/chdir can be used in the form of dtrace -n 'syscall::create:entry {…
mario.hsu
  • 97
  • 5
1
vote
2 answers

Compiling erlang with systemtap but require dtrace

I'm compiling erlang otp from source like following: ./configure --with-dynamic-trace=systemtap But it reports error: checking for dtrace... no configure: error: No dtrace utility found. I think systemtap is for linux usage and it is different…
goofansu
  • 2,277
  • 3
  • 30
  • 48
1
vote
1 answer

Need someone who has Mac OS X Mountain Lion? Udp Probes

If you have Mac OS X Mountain Lion could you write " sudo dtrace -ln udp::: " to your Terminal screen and copy the results for me? I need to learn are UDP probes available for new OS . Thank you in advance.
Ozeksi
  • 27
  • 5
0
votes
1 answer

How to filter DTrace output for Objective-C?

I am learning DTrace, and it is very powerful tool. But one problem is that DTrace outputs too much information and most of those are NS classes. But my question is how I can filter system classes if users' classes do not have proper prefix?…
0
votes
0 answers

dtrace on Windows: "in action list: failed to resolve nt`_GUID: Unknown symbol name"

I installed dtrace on Windows 10, with this version: C:\Users\xyz>dtrace -V dtrace: Sun D 1.13.1 This command does not work: C:\Users\xyz>dtrace -n "tick-3sec { trace(sizeof(nt`_GUID));exit(0);} " dtrace: invalid probe specifier tick-3sec {…
remi.chateauneu
  • 109
  • 2
  • 9
0
votes
1 answer

How is my binary able to write to the stdout without a system call recorded by dtruss?

I am entirely new to dtruss, but familiar with strace. Consider the following Hello World program: #include int main(){ printf("hello world\n"); } When I compile and run this on Linux with strace, I get several lines of output,…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
0
votes
0 answers

What is DTRACE_BLOCK_STATISTICS in VTM software and how to implement it?

I am using VVC and VTM software. What is DTRACE_BLOCK_STATISTICS in vtm software, and how can it be use in the commandline? whether can it be used to extract certain information from a video, if so how can I get the difference of max and min pixel…
0
votes
1 answer

No output from iosnoop (dtrace) until application is killed

I want to understand iosnoop. Therefor I wrote a small program to trace on. I expect to see something in iosnoop if I flush the cache. I don't see anything until I kill the application. What am I doing…
Fachher
  • 28
  • 4
0
votes
1 answer

How to detect without the system method or system framework with DTrace on Mac OS X?

How do I just print the user-defined class and method using DTrace, without the system class, method, such as NSLock, NSThread, NSObject and so on? Using the following D code, it can trace all of the Objective-C methods including the system and…
victor
  • 1
  • 1
0
votes
1 answer

dtrace errors out with incorrect type for thread_t on macOS 12.2.1

The following dtrace invocation used to work on MacOS 11.6.2 but after upgrading to MacOS 12.2.1 it stopped working sudo --non-interactive dtrace -l -b 16m -x mangled -x disallow_dsym -x strip -x evaltime=preinit -x preallocate=256m -n…
A. K.
  • 34,395
  • 15
  • 52
  • 89