[roll] Roll fuchsia [kernel] Move category tracking to KTrace

Moves the category bitmask out of internal::KTraceState and into the
KTrace singleton. Now that categories are being set in KTrace, the
diagnostic logging had to be moved to KTrace as well.

This CL makes two changes that should be carefully considered:
1. The category bitmask is now loaded with relaxed semantics instead
   of acq/rel semantics. It is my belief that this is a safe change
   to make because reading/writing this mask does not need to
   synchronize across threads, but I'd like my reviewers to verify
   this.
2. ReserveRaw failures due to the ring buffer being full no longer
   clear the category mask. This is fine because writes are still
   disabled in internal::KTraceState, so there should be no functional
   change.

This change also adds tests to verify that categories are set/unset
correctly.

Original-Bug: 404539312
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1243384
Original-Revision: bbb17463929c492490e6bfddb03e3fdd9f1896b0
GitOrigin-RevId: b32c2a994e865760e7ae0e42244a41580f89c3c7
Change-Id: I56fb6bae33a379c0b482b2ec0b9ba1e5dd459bf3
1 file changed
tree: e2f507db98ce9237b0eec8ee8dd5ae6c97b71cfc
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.