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)
Sun, Nov 30, 3:17 AM
Unknown Object (File)
Sat, Nov 29, 11:06 PM
Unknown Object (File)
Sat, Nov 29, 10:20 PM
Unknown Object (File)
Fri, Nov 28, 10:14 AM
Unknown Object (File)
Tue, Nov 25, 6:28 AM
Unknown Object (File)
Fri, Nov 21, 11:53 PM
Unknown Object (File)
Nov 18 2025, 4:45 AM
Unknown Object (File)
Nov 11 2025, 1:45 AM
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