Questions tagged [dtruss]

`dtruss` is a script for `DTrace` that traces all types of system calls, but unlike other scripts can trace multiple processes at the same time.

dtruss is a script for DTrace that traces all types of system calls, but unlike other scripts can trace multiple processes at the same time. dtruss can also launch and trace a program.

dtruss supports various options, including the printing of system call timing for use when analyzing performance.

See more:

22 questions
1
vote
2 answers

How can I make the underlying file access actions of git log visible

I would like to visual the file system actions that are caused by running something like git lg -n3. I'm on a Mac. So I thought, ok let's run dtruss git lg -n3. Unfortunately this doesn't give me the expected output. I would expect to see file…
Christoph
  • 26,519
  • 28
  • 95
  • 133
1
vote
0 answers

Finding and using a syscall

I am developing an app on linux and OSX and I need to view the neighbor cache (ipv6) and add ips. I can do this by simply using the "ndp -an" and "ifconfig..." command for example, but it seems rather un-elegant. I tried to use "dtruss" to analyze…
diea
  • 21
  • 1
0
votes
0 answers

How do I extract binary invocation from `cargo run` on macos?

Context When I was trying to run a Criterion.rs benchmark as a standalone binary, I carried out the following steps: Run cargo bench. This shows me the path to the binary (target/release/...): > cargo bench --features dhat-heap --bench…
Noel Kwan
  • 123
  • 1
  • 5
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
1 answer

dtruss with DYLD_BIND_AT_LAUNCH and sshfs mounts in OSX 10.9?

I'm trying to build the example at this gist on OSX 10.9: cd /tmp git clone https://gist.github.com/ecfd80885b9ddf6734192c056cf48bf4.git fopentest cd fopentest bash buildrun.sh The build succeeds - and furthermore, I can see the following in the…
sdaau
  • 36,975
  • 46
  • 198
  • 278
0
votes
1 answer

OSX: dtrace printf(), write_nocancel() output base on dtruss script

I need to see my program's printf output in sync with the dtrace output. I like to build my own version of dtrace command that produce the equivalent output of the "sudo dtruss -t write_nocancel ls" command. This is the "correct dtruss…
tony-p-lee
  • 797
  • 1
  • 7
  • 13
0
votes
0 answers

Is dtruss missing calls?

Problem I'm trying to diagnose a problem starting up an application using JCEF on Mac and it seems like dtruss is missing system calls from its trace. For example the program always quits after failing to look up 'icudtl.dat', and prints out a log…
Luke Quinane
  • 16,447
  • 13
  • 69
  • 88
1
2