commit | 162f8067d50a09a376a16a39b1460132cec3dc8a | [log] [tgz] |
---|---|---|
author | Anirudh Mathukumilli <rudymathu@fuchsia.infra.roller.google.com> | Mon Apr 21 14:44:56 2025 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 21 14:48:02 2025 -0700 |
tree | 3c91bafc3084383b60c3b9df7e6f9708fa5a7191 | |
parent | 6e6bcab8e725b7d68c36c961807a180d00e67a49 [diff] |
[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
This repository contains Fuchsia's Global Integration manifest files.
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.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party
.