Page MenuHomeFreeBSD

libdtrace: Fix formatting of messages about drops
ClosedPublic

Authored by markj on Apr 15 2025, 6:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 2, 3:44 PM
Unknown Object (File)
Thu, Jul 31, 8:12 PM
Unknown Object (File)
Sun, Jul 27, 2:17 PM
Unknown Object (File)
Sat, Jul 26, 1:11 PM
Unknown Object (File)
Fri, Jul 25, 1:13 AM
Unknown Object (File)
Jun 21 2025, 8:45 PM
Unknown Object (File)
Jun 20 2025, 7:39 PM
Unknown Object (File)
Jun 20 2025, 12:47 PM
Subscribers

Details

Reviewers
gnn
domagoj.stolfa_gmail.com
Group Reviewers
DTrace
Summary

I noticed that when a script triggers drops, it generates some nonsense
output when it exits, e.g., "4 -1 dtrace INTERNAL INTERNAL DROP". I
believe this is because dt_oformat_drop() is only supposed to be called
when structured output is enabled.

Fixes: 93f27766a7e1 ("dtrace: Add the 'oformat' libdtrace option")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63528
Build 60412: arc lint + arc unit