Page MenuHomeFreeBSD

Expand ktr_mask to be a 64-bit unsigned integer.
ClosedPublic

Authored by jhb on May 19 2015, 9:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 1:50 PM
Unknown Object (File)
Fri, Nov 22, 6:58 AM
Unknown Object (File)
Sun, Nov 17, 12:34 PM
Unknown Object (File)
Sep 24 2024, 4:56 AM
Unknown Object (File)
Sep 22 2024, 8:13 PM
Unknown Object (File)
Sep 21 2024, 4:57 PM
Unknown Object (File)
Sep 18 2024, 5:06 PM
Unknown Object (File)
Sep 18 2024, 3:50 PM
Subscribers

Details

Summary

Expand ktr_mask to be a 64-bit unsigned integer.

The mask does not really need to be updated with atomic operations and
the downside of losing races during transitions is not great (it is
not marked volatile, so those races are pretty wide open as it is).

Test Plan
  • Tested some ktr tracing (albeit still using a 32-bit mask) and it still worked fine.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Expand ktr_mask to be a 64-bit unsigned integer..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
neel added a reviewer: neel.
This revision is now accepted and ready to land.May 19 2015, 9:42 PM

I like this change, but I missing one small thing: the conversion of KTR_foo classes from 32 bit defines to 64 bit defines in sys/ktr_class.h

This comment was removed by op.
rpaulo added a reviewer: rpaulo.
emaste added a reviewer: emaste.

Strictly speaking I don't think we need to convert the KTR class macros just yet. Also, we don't need to bump KTR_VERSION since the layout of the logged records hasn't changed.

This revision was automatically updated to reflect the committed changes.