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)
Mon, Jan 5, 8:53 PM
Unknown Object (File)
Sun, Jan 4, 2:17 PM
Unknown Object (File)
Fri, Jan 2, 12:32 PM
Unknown Object (File)
Wed, Dec 31, 11:33 AM
Unknown Object (File)
Mon, Dec 29, 8:21 AM
Unknown Object (File)
Mon, Dec 22, 8:27 PM
Unknown Object (File)
Nov 30 2025, 3:17 AM
Unknown Object (File)
Nov 29 2025, 11:06 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