[roll] Roll fuchsia [kernel] Move ktrace_init into KTrace singleton

This moves ktrace_init, which is the LK_INIT_HOOK that initializes
the tracing subsystem in the kernel, to a static method in the
KTrace singleton. Some of the operations in the init function have
been reordered: the early exit when ktrace is disabled now runs
before the RegisterCallback and the CategoryBits are set up, since
they will not be needed if ktrace is unused.

This is the final callsite that made use of the public accessor for
the internal KTraceState. With its removal, we can finally make that
accessor private and prevent any files that include ktrace.h from
being able to access that internal state.

Original-Bug: 42069955
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1232105
Original-Revision: a35f49ae59dcacbe85b113cd0b75caf1b6dce3da
GitOrigin-RevId: dd029f2c6c48ae4e8a72d9f900484a71d5a01b4d
Change-Id: I11cf006a8789a544319a5ce947c51222a28f5375
1 file changed
tree: 3e5df7392a4c9ff4fbb4495add460a70cbdcee58
  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.