2023-10-08 01:01:36 +01:00
# dtrace
> A simple interface to invoke the D language compiler, retrieve buffered trace, and print traced data from the DTrace kernel facility.
> Generic front-end to DTrace facility, requiring root privileges.
2024-01-31 10:20:27 +00:00
> More information: <https://keith.github.io/xcode-man-pages/dtrace.1.html>.
2023-10-08 01:01:36 +01:00
- Set target data model for a specific architecture:
`dtrace -arch {{arch_name}}`
- Claim [a]nonymous tracing state and display the traced data:
`dtrace -a`
- Set principal trace buffer size. Supported units are `k` , `m` , `g` , or `t` :
`dtrace -b {{2g}}`
- Compile the specified D Program [s]ource file:
`dtrace -s {{D_script}}`
- Run the specified [c]ommand and exit upon its completion:
`dtrace -c {{command}}`
- Specify [f]unction name to trace or list (-l option). The corresponding argument can include any of the probe description forms like `provider:module:function` , `module:function` or `function` :
`dtrace -f {{function}}`
pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names
* pages*: fix brand and technical names
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git
* bzegrep: enclose egrep with backticks
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-force-clone: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* gitwatch: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* hub-init: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* pages.*: use Linux instead of GNU/Linux
---------
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 04:46:32 +00:00
- Grad the specified [p]rocess ID, cache its symbol table, and exit upon completion:
2023-10-08 01:01:36 +01:00
`dtrace -p {{pid}}`
- Combine different options for tracing function in a process:
`dtrace -a -b {{buffer_size}} -f {{function}} -p {{pid}}`