Page MenuHomeFreeBSD

dtrace: Improve dmesg kernel message prefix
AcceptedPublic

Authored by ziaee on Mon, Mar 9, 2:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 5, 1:17 PM
Unknown Object (File)
Sun, Mar 29, 11:55 PM
Unknown Object (File)
Fri, Mar 20, 12:49 PM
Unknown Object (File)
Fri, Mar 20, 7:55 AM
Unknown Object (File)
Wed, Mar 18, 12:05 PM
Unknown Object (File)
Tue, Mar 17, 9:12 PM
Unknown Object (File)
Tue, Mar 17, 4:30 AM
Unknown Object (File)
Wed, Mar 11, 8:35 AM

Details

Reviewers
mav
0mp
Group Reviewers
DTrace
Summary

I chose lowercase for consistency with other kernel messages.
We're making a similar change in OpenZFS.

Reported by: mav
MFC after: 1 month
OpenZFS change: https://github.com/openzfs/zfs/pull/18290

Diff Detail

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

Event Timeline

ziaee requested review of this revision.Mon, Mar 9, 2:44 PM
0mp added a subscriber: 0mp.

Good idea.

Shouldn't that be DTrace instead of dtrace?

This revision is now accepted and ready to land.Mon, Mar 9, 2:55 PM

Good idea.

Thank you!

Shouldn't that be DTrace instead of dtrace?

I don't know. I only know drivers are lowercase, and it looks nice when they're similar, so for the corresponding change in OpenZFS we made it lowercase.

The corresponding change has been merged into OpenZFS.

Is assfail actually used? I see a dtrace_assfail in dtrace code. (Didn't check the others.)

I think this is fine. It's a bit of layering violation since opensolaris is supposed to be able to serve multiple consumers (dtrace and ZFS in the past, just dtrace now). I'm in favour of converting assertion and print function calls in dtrace to just using FreeBSD interfaces directly.