public inbox for dtrace@lists.linux.dev
 help / color / mirror / Atom feed
From: Kris Van Hees <kris.van.hees@oracle.com>
To: Nick Alcock <nick.alcock@oracle.com>
Cc: dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com, sam@gentoo.org
Subject: Re: [PATCH v2 12/14] man: add manpage for dtprobed(8)
Date: Tue, 29 Oct 2024 17:19:38 -0400	[thread overview]
Message-ID: <ZyFRair0UzjyytWg@oracle.com> (raw)
In-Reply-To: <20241028211803.458685-13-nick.alcock@oracle.com>

On Mon, Oct 28, 2024 at 09:18:01PM +0000, Nick Alcock wrote:
> Cross-reference it from dtrace(8) and vice versa.
> 
> Bug: https://github.com/oracle/dtrace-utils/issues/94
> Signed-off-by: Nick Alcock <nick.alcock@oracle.com>

Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>

> ---
>  cmd/dtrace.8        |  3 ++-
>  dtprobed/Build      |  2 ++
>  dtprobed/dtprobed.8 | 64 +++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 68 insertions(+), 1 deletion(-)
>  create mode 100644 dtprobed/dtprobed.8
> 
> diff --git a/cmd/dtrace.8 b/cmd/dtrace.8
> index fb9392d29cb2..c299073239eb 100644
> --- a/cmd/dtrace.8
> +++ b/cmd/dtrace.8
> @@ -184,7 +184,8 @@ Options set this way are overridden both by options specified via \fB\-x\fR on t
>  .
>  .SH SEE ALSO
>  .BR cpp (1),
> -.BR ssh (1)
> +.BR ssh (1),
> +.BR dtprobed (1)
>  .LP
>  .I Oracle Linux DTrace Guide
>  .
> diff --git a/dtprobed/Build b/dtprobed/Build
> index 346cd6aee190..7d98ddf836c3 100644
> --- a/dtprobed/Build
> +++ b/dtprobed/Build
> @@ -57,6 +57,8 @@ install::
>  	mkdir -p $(INSTSBINDIR)
>  	$(call describe-install-target,$(INSTSBINDIR),dtprobed)
>  	install -m 755 $(objdir)/dtprobed $(INSTSBINDIR)
> +	$(call describe-install-target,$(INSTMANDIR),dtprobed.8)
> +	install -m 644 $(dtprobed_DIR)/dtprobed.8 $(INSTMANDIR)/man8
>  	mkdir -p $(INSTUDEVDIR)
>  	$(call describe-install-target,$(INSTUDEVDIR),60-dtprobed.rules)
>  	install -m 644 $(dtprobed_DIR)60-dtprobed.rules $(INSTUDEVDIR)
> diff --git a/dtprobed/dtprobed.8 b/dtprobed/dtprobed.8
> new file mode 100644
> index 000000000000..2ebe89ccc426
> --- /dev/null
> +++ b/dtprobed/dtprobed.8
> @@ -0,0 +1,64 @@
> +'\" te
> +.\" Oracle Linux DTrace.
> +.\" Copyright (c) 2009, 2024, Oracle and/or its affiliates. All Rights Reserved.
> +.\" Licensed under the Universal Permissive License v 1.0 as shown at
> +.\" http://oss.oracle.com/licenses/upl.
> +.TH dtrace 8 "22 Oct 2023" "Oracle Linux" "Linux Programmer's Manual"
> +.SH NAME
> +dtprobed \- USDT-tracking daemon
> +.SH SYNOPSIS
> +.SY dtprobed
> +.OP -Fd
> +.OP \-d devname
> +.OP \-t timeout
> +.YS
> +.
> +.SH DESCRIPTION
> +.LP
> +\fBdtprobed\fP is a component of the DTrace system that keeps track of USDT probes within running processes, parsing and storing the DOF they provide for later consumption by \fBdtrace\fP proper.
> +.LP
> +\fBdtprobed\fP should be started as soon as possible after startup and should always be kept running: processes that start before it may not have usable USDT probes.  On systemd systems this is usually done automatically.  (Restarting on upgrade should also be done for you by the packaging system.)
> +.LP
> +The following options are supported:
> +.TP
> +\fB\-F\fP
> +Put \fBdtprobed\fP into the foreground: log output to \fIstderr\fP instead of the syslog. (Routinely used by systemd.)
> +.TP
> +\fB\-d\fP
> +Enable debugging: log extra output, and disable sandboxing of the DOF parser.
> +.TP
> +\fB-n\fP \fIdevname\fP
> +Name the CUSE device something other than the default \fIdtrace/helper\fP. DOF-containing processes will not connect to this instance unless pointed at it via the \fIDTRACE_DOF_INIT_DEVNAME\fP environment variable.  Using this option is necessary if for some reason (perhaps debugging) you want to have two dtprobeds running at once.  (They will still share a state directory, so DTrace will know about all probes discovered by all running \fBdtprobed\fPs.)
> +.TP
> +\fB\-t\fP \fItimeout\fP
> +Timeout, in seconds, for DOF reads from the parser child.  DOF that takes longer than this to parse will be discarded.  The default (5 seconds) is probably always reasonable. Setting this too low might cause legitimate DOF to be discarded: setting it too high might cause faulty DOF to block \fBdtprobed\fP, preventing registration of new probes.
> +.
> +.SH "ENVIRONMENT VARIABLES"
> +.LP
> +Ignoring internal testing-only variables, \fBdtprobed\fP itself does not accept any environment variables: but programs that talk to it (any program that contains USDT probes) do accept some.
> +.TP
> +\fIDTRACE_DOF_INIT_DEBUG\fP
> +Output debugging messages to standard error if set (to anything).
> +.TP
> +\fIDTRACE_DOF_INIT_DEVNAME\fP
> +The full name of the helper device to send registration requests on: by default, \fI/dev/dtrace/helper\fP. \fBdtprobed\fP is listening on the other end of this device.
> +.TP
> +\fIDTRACE_DOF_INIT_DISABLE\fP
> +Disable DOF registration entirely.
> +.
> +.SH FILES
> +.
> +.TP
> +\fI/run/dtrace/stash\fP
> +Private stash of DOF.
> +.TP
> +\fI/run/dtrace/probes\fP
> +Parsed representations of every probe.  The parsed representation is shared between
> +.MR dtrace 8
> +and \fBdtprobed\fP, and can change between releases: on upgrade, \fBdtprobed\fP should be restarted, and will regenerate any parsed DOF that is needed, so \fBdtrace\fPs started after the upgrade will still work.  (Still-running \fBdtrace\fPs from before the upgrade may become unable to see newly-added probes.)
> +.
> +.SH SEE ALSO
> +.
> +.BR dtrace (8)
> +.LP
> +.I Oracle Linux DTrace Guide
> -- 
> 2.46.0.278.g36e3a12567
> 

  reply	other threads:[~2024-10-29 21:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-28 21:17 [PATCH v2 00/14] gentoo, manpage, and assorted other small fixes Nick Alcock
2024-10-28 21:17 ` [PATCH v2 01/14] No longer depend on libsystemd Nick Alcock
2024-10-29 18:27   ` Kris Van Hees
2024-10-29 21:51     ` Nick Alcock
2024-10-28 21:17 ` [PATCH v2 02/14] pkgconfig: drop spaces in variable decls Nick Alcock
2024-10-28 21:17 ` [PATCH v2 03/14] configure, build: make valgrind optional Nick Alcock
2024-10-28 21:17 ` [PATCH v2 04/14] build: substitute LIBDIR in pkg-config files Nick Alcock
2024-10-28 21:17 ` [PATCH v2 05/14] probe: improve dt_probe_lookup2() Nick Alcock
2024-10-29 19:50   ` [DTrace-devel] " Kris Van Hees
2024-10-29 21:57     ` Nick Alcock
2024-10-28 21:17 ` [PATCH v2 06/14] configure: fix dreadful behaviour of MANDIR / --mandir Nick Alcock
2024-10-28 21:17 ` [PATCH v2 07/14] man: the synopsis is ended with .YS, not .SY Nick Alcock
2024-10-28 21:17 ` [PATCH v2 08/14] man: use \- for option dashes, not - Nick Alcock
2024-10-28 21:17 ` [PATCH v2 09/14] man: drop blank lines Nick Alcock
2024-10-28 21:17 ` [PATCH v2 10/14] man: fix blank line in environment variables list Nick Alcock
2024-10-28 21:18 ` [PATCH v2 11/14] dtprobed: fix parser child timeout Nick Alcock
2024-10-28 21:18 ` [PATCH v2 12/14] man: add manpage for dtprobed(8) Nick Alcock
2024-10-29 21:19   ` Kris Van Hees [this message]
2024-10-28 21:18 ` [PATCH v2 13/14] man: drop double-\fB at the start of every option line Nick Alcock
2024-10-28 21:18 ` [PATCH v2 14/14] man: \fP-ize Nick Alcock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZyFRair0UzjyytWg@oracle.com \
    --to=kris.van.hees@oracle.com \
    --cc=dtrace-devel@oss.oracle.com \
    --cc=dtrace@lists.linux.dev \
    --cc=nick.alcock@oracle.com \
    --cc=sam@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox