Page MenuHomeFreeBSD

Manual pages for various DTrace providers.
ClosedPublic

Authored by markj on Mar 28 2015, 9:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 11:51 AM
Unknown Object (File)
Wed, Dec 11, 1:49 AM
Unknown Object (File)
Nov 25 2024, 12:17 AM
Unknown Object (File)
Nov 24 2024, 5:48 PM
Unknown Object (File)
Nov 5 2024, 5:57 PM
Unknown Object (File)
Nov 5 2024, 5:57 PM
Unknown Object (File)
Nov 5 2024, 5:55 PM
Unknown Object (File)
Nov 5 2024, 5:55 PM

Details

Summary

This is a first attempt at documenting some of the more "standard" DTrace providers in FreeBSD. We don't currently have any documentation for static probes, so I had to come up with some conventions. They're obviously not set in stone yet, so please feel free to suggest sweeping changes in addition to the usual wording/consistency/completeness issues.

The main reference for Solaris DTrace providers are pages on the Oracle wiki, e.g. https://wikis.oracle.com/display/DTrace/ip+Provider

I followed a roughly similar format: each provider gets its own man page, the probes are described in the DESCRIPTION section, argument types are described in ARGUMENTS, and some examples are under EXAMPLES. Probe names are rendered using the .Fn macro; this isn't really ideal, but I don't see any good alternatives. In general, I try to describe the conditions under which a given probe will fire, as well as the arguments it receives. Rendered pages are here: https://people.freebsd.org/~markj/dtrace/man/

As mentioned, this covers only a subset of the SDT providers that we have. Most of the rest are less complete and mainly intended for developer debugging, so they're not very amenable to documentation.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

markj retitled this revision from to Manual pages for various DTrace providers..
markj edited the test plan for this revision. (Show Details)
rpaulo added a reviewer: rpaulo.
rpaulo added a subscriber: rpaulo.

Good job :)

share/man/man4/dtrace-proc.4
227

Hmm, maybe we should fix this. :-)

share/man/man4/dtrace-tcp.4
356

I think this isn't true anymore on Darwin since lots of TCP probes are missing on Darwin.

This revision is now accepted and ready to land.Mar 28 2015, 10:29 PM

Looks nice! The comment are mostly recurring small issues.

share/man/man4/dtrace-io.4
38

This should probably be:

The
.Nm io
provider...

97

FreeBSD -> .Fx

103

.Nm io, same as above

112

FreeBSD -> .Fx

share/man/man4/dtrace-ip.4
40

.Nm ip

53

Xref the dtrace-{tcp, udp} manpages perhaps?

215

.Nm ip

258

.Nm ip

268

.Nm ip and .Fx

share/man/man4/dtrace-proc.4
44

.Nm proc

124

.Nm proc and .Fx

200

.Nm proc

221

.Nm proc and .Fx

228

.Nm proc

229

.Fx

242

.Nm proc and .Fx

share/man/man4/dtrace-sched.4
49

.Nm sched

150

.Nm sched

197

.Fx

203

.Fx

211

.Nm sched and .Fx

share/man/man4/dtrace-tcp.4
54

.Nm tcp

57

Xref dtrace-{ip, udp}.4?

60

.Nm tcp

67

Typo, exposes

116

.Xr dtrace-udp 4 and .Nm tcp

118

.Xr dtrace-ip 4

166

.Nm tcp

278

.Nm tcp

364

.Nm tcp and .Fx

share/man/man4/dtrace-udp.4
40

.Nm udp

132

.Nm udp

187

.Nm udp and .Fx

markj edited edge metadata.
  • Address review comments from brueffer.
This revision now requires review to proceed.Mar 30 2015, 6:52 PM
In D2170#10, @brueffer wrote:

Looks nice! The comment are mostly recurring small issues.

Thanks! I think I addressed all the comments with the last upload.

share/man/man4/dtrace-proc.4
227

I'd like to, but I don't think we can without breaking compatibility, D2169 notwithstanding. :)

There are a number of other compatibility-breaking changes that I'd like to make, mostly for PR 195222: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195222

share/man/man4/dtrace-tcp.4
356

Hm, ok. I'll check on my macbook and revise.

bcr added a reviewer: bcr.
bcr added a subscriber: bcr.

I think this is too important to have these man pages to not to stall it longer from the docs point of view.

This revision is now accepted and ready to land.Apr 18 2015, 7:29 PM
markj updated this revision to Diff 4909.

Closed by commit rS281705 (authored by @markj).