dtrace(8)
π dtrace(8) β Linux Programmer's Manual π
okay bestie, sit down, we're reading the dtrace(8) page together and honestly? it's giving essential sysadmin lore. π¦
β¨ NAME β¨
dtprobed β the USDT-tracking daemon. yes that's the whole name section, she's lowkey humble about it π
β¨ SYNOPSIS β¨
dtprobed [-Fd] [-d devname] [-t timeout]
(yes, <pink>-d</pink> shows up twice in there, and no that's not a typo on my part, that's literally what the page says, keep scrolling and it'll make sense, i promise π«Ά)
β¨ DESCRIPTION β¨
So. dtprobed is a whole component of the DTrace system, and her job β her entire main character job β is keeping track of USDT probes inside running processes. She parses the DOF those processes hand over and stores it, so that dtrace proper can come along later and consume it. That's the vibe. π
dtprobed should be started as soon as possible after startup, and she should always be kept running. Periodt. The reason is kinda important bestie: processes that start before her might not have usable USDT probes. π On systemd systems this is usually done automatically for you. (And restarting on upgrade should also be handled for you by the packaging system, so you don't have to think about it. slay.)
The following options are supported:
-Fβ putsdtprobedinto the foreground: log output goes tostderrinstead of the syslog. (systemd uses this one routinely, so it's very much a normal thing to see.)-dβ enables debugging: logs extra output, and disables sandboxing of the DOF parser. π-ndevnameβ names the CUSE device something other than the defaultdtrace/helper. Important caveat here, bestie: DOF-containing processes will not connect to this instance unless they're pointed at it via theDTRACE_DOF_INIT_DEVNAMEenvironment variable. You need this option if for some reason (maybe debugging?) you want to have twodtprobeds running at once. (They'll still share a state directory though, so DTrace will know about all the probes discovered by all the runningdtprobeds. teamwork π)-ttimeoutβ the timeout, in seconds, for DOF reads from the parser child. Any DOF that takes longer than this to parse gets discarded. The default is5seconds and honestly it's probably always reasonable. But heads up: set it too low and you might cause legitimate DOF to be thrown away π¬, set it too high and faulty DOF might blockdtprobed, which prevents registration of new probes. It's a whole balancing act.
β¨ ENVIRONMENT VARIABLES β¨
Ignoring the internal testing-only variables, dtprobed herself doesn't accept any environment variables. But the programs that talk to her β meaning any program that contains USDT probes β do accept some. so it's a them thing, not a her thing. π€·
DTRACE_DOF_INIT_DEBUGβ outputs debugging messages to standard error if set (to anything at all, doesn't matter what).DTRACE_DOF_INIT_DEVNAMEβ the full name of the helper device to send registration requests on. By default that's/dev/dtrace/helper.dtprobedis listening on the other end of this device. π§DTRACE_DOF_INIT_DISABLEβ disables DOF registration entirely. just. off. π
β¨ FILES β¨
/run/dtrace/stashβ private stash of DOF. (a stash!! like a little treasure box π)/run/dtrace/probesβ parsed representations of every probe. Here's the tea: that parsed representation is shared betweendtrace(8)anddtprobed, and it can change between releases. So on upgrade,dtprobedshould be restarted, and she'll regenerate any parsed DOF that's needed β which meansdtraces started after the upgrade will still work. (Still-runningdtraces from before the upgrade may become unable to see newly-added probes though. sad but true. π)
β¨ SEE ALSO β¨
dtrace(8)- Oracle Linux DTrace Guide
quick recap bestie: start her early, never stop her, and if you're upgrading β restart her. that's the whole assignment. π«Ά
and that's the page!! this one came from Oracle Linux, dated 22 Oct 2023. iconic. no cap. π β¨πΈ
π¦ where this page comes from
- ubuntu resolute: libdtrace2 2.0.6-1 Β· UPL-1.0
- ubuntu stonking: libdtrace2 2.0.7-3 Β· UPL-1.0
- Copyright (c) 2009, 2024, Oracle and/or its affiliates. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms