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, Oct 20, 7:16 AM
Unknown Object (File)
Tue, Oct 7, 6:28 AM
Unknown Object (File)
Sep 24 2025, 3:24 AM
Unknown Object (File)
Sep 20 2025, 5:23 AM
Unknown Object (File)
Sep 15 2025, 6:20 AM
Unknown Object (File)
Sep 8 2025, 10:11 AM
Unknown Object (File)
Sep 5 2025, 11:19 PM
Unknown Object (File)
Aug 13 2025, 5:04 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