[roll] Roll fuchsia [kernel] Add Drain method to SpscBuffer

KTrace allows users to "Rewind" the trace buffer, which effectively
means emptying it. This CL adds support for this functionality to
the SpscBuffer with a method called Drain, which is logically
equivalent to performing a Read into /dev/null. Callers could have
already implemented this function themselves by calling Read in a
loop with a no-op CopyOutFn; adding this to the API just makes the
operation more efficient.

Original-Bug: 404539312
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1237565
Original-Revision: 49136bdd3cd1073009cedf5cb09aa85fbd821daf
GitOrigin-RevId: 0ddf4046a3e1b031656de3d0c72ff8f16866474e
Change-Id: Ice7683a4a4c2a0e16d23620e9f9c24afb79b1c0d
1 file changed
tree: fdde3b998b414bb6bccb4c7c0040a9cd4952c0a1
  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.