Questions tagged [dtrace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
35 views

How to execute an equivalent function of Xcode's Instruments > “File Activity” in shell?

I need to be able to show and capture the same output that Xcode.app/Contents/Applications/Instruments.app captures while in Terminal.app (in the shell). Is there a dtrace function / script, or some ...
1
vote
1answer
98 views

dtruss not working on Mojave

Running dtruss on 10.14.4 (Xcode 10.2) gives me this: tmp$ sudo dtruss ./ls dtrace: failed to enable ' #pragma D option quiet ': Failed to enable probe CSCppMachTaskContainer pid_for_task failed ...
1
vote
0answers
46 views

How to isolate systemic hangs in macOS 10.14?

I'm struggling with some kind of a hang that is very elusive. Apple can't seem to isolate the problem after many sysdiagnose submissions. It predominantly happens in instances of Google Chrome, Finder ...
1
vote
0answers
37 views

Dtrace working but no kernel data can be output?

I have for a long time run as sip -without dtrace to use dtrace and this is fine but a few apps I want to read data from seen to run in kernel mode (Little Snitch has several components for instance). ...
1
vote
1answer
31 views

`dtrace_deadman_timeout` modification for dtrace scripts such as dtruss?

When running some intensive debugging that needs to run on the order of about 5 minutes, I'm finding that dtrace's deadman switch is being triggered regularly and cannot get to the error that is being ...
3
votes
1answer
1k views

dtrace/dtruss command to see what files a command tries to open?

Is there a dtrace one liner that will run a command, and tell me all the files it tries to open? The Linux strace equivalent of what I'm trying to do is strace -e trace=file -f cat /etc/passwd > /...
4
votes
0answers
869 views

iotop on High Sierra

I seem to have issues with iotop on High Sierra, googling it I find no useful information. The output is garbled and almost unusable. I have SIP disabled for dtrace (I know "I'm not suppose to do ...
2
votes
2answers
2k views

How to find which shared library is loaded by a process on OSX?

I am trying to compile and use a shared C library as a python module and I am observing that depending on the DYLD_LIBRARY_PATH my code works or it crashes with a cryptic error message. Jul 24 02:44:...
5
votes
0answers
579 views

Why is SIP keeping me from using `dtruss` on an executable outside its protected folders?

I'm trying to run the following command on OS X El Capitan (10.11.4): sudo dtruss /usr/local/bin/mix phoenix.server It fails, saying: dtrace: failed to execute /usr/local/bin/mix: dtrace cannot ...
0
votes
2answers
448 views

Dtrace script newproc.d stopped working after upgrade, because of missing proc:::exec-success probe

I'm trying to run: $ sudo /usr/bin/newproc.d which suppose to snoop new processes as they are executed, but it fails with the error: dtrace: failed to compile script /usr/bin/newproc.d: line 22: ...
2
votes
1answer
1k views

Trace file reads and writes on os x?

I have something running that is syncing two directories. I want to turn it off but cannot figure out what it is. El Capitan, if that matters. Can someone provide a command or tool that will reliably ...
2
votes
1answer
875 views

dtrace errors when running opensnoop in El Capitan [duplicate]

In order to diagnose slow terminal interaction (which turned out to be an unrelated problem), I ran sudo opensnoop and saw output like this: dtrace errors I assume this has to do with SIP in El ...
19
votes
2answers
8k views

Now that El Capitan is “rootless”, is there any way to get dtrace working?

I've found dtrace to be an invaluable tool for debugging and troubleshooting all sorts of issues, not to mention the two dozen dtrace toolkit scripts shipped by Apple as part of El Capitan. On El Cap ...
2
votes
2answers
1k views

dtrace replacement for fseventer?

I think many of us have been disappointed with the effective demise of fseventer. What is a good dtrace shell based alternative to fseventer that will display all full paths of files being accessed ...
1
vote
0answers
531 views

How to trace and debug IPC (interprocess communication)

I have a problem with my distnoted process that I'm trying to debug. In order to investigate it, I'd like to trace the interprocess communication that's happening on my OS X 10.9.3 (Mavericks) system....