[roll] Roll fuchsia [kernel] Implement KTrace::ReadUser for per-CPU mode

Implements the ReadUser function for the per-CPU implementation
of KTrace. This effectively wires up support for zx_ktrace_read.

Note that the current implementation imposes two limitations:
1. The buffer passed in by userspace to read into must be large
   enough to contain the entirety of all per-CPU buffers. We can
   likely relax this in the future, but I see no downside to adding
   this restriction for now. The upside is that we avoid having to
   support partial reads, which add additional complexity.
2. The copy out function does not handle page faults inline. Instead,
   it expects the normal page fault path to handle the page fault. This
   is safe because the KTrace lock is a leaf lock that will not be
   acquired during page fault resolution, and is what the existing code
   does today.

Original-Bug: 404539312
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1255387
Original-Revision: fce7852945fc4aa7978fc5e60f1b57464cd767ee
GitOrigin-RevId: 7436ca2b4e1e3658f73d6792100fd2dfeb8c6172
Change-Id: Ie80ef43c95d7c35bb1f0f3797940729da9597a62
1 file changed
tree: 3c91bafc3084383b60c3b9df7e6f9708fa5a7191
  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.