[roll] Roll fuchsia [kernel] Track dropped records in ktrace per-CPU mode

Modifies the per-CPU implementation of ktrace to track the duration,
number, and size of the records it drops due to buffers being full.

All tracking is done entirely by the writers, meaning that:
1. A writer begins tracking when it fails a reservation for the first
   time.
2. A writer emits a duration to the KTrace buffer containing the
   aforementioned statistics when there is space to do so.

An alternative design was considered in which the reader would perform
step 2 as soon as it read enough data out of the trace buffer, but this
was deemed more complex, as one would need to start thinking about how
to synchronize the reader's and writer's observation of the dropped
record statistics.

Original-Bug: 404539312
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1262925
Original-Revision: fe713efb63dd2a9c7f1a3b3ede63b73c02e1b9d0
GitOrigin-RevId: 221c1fd22eb0cab183c47d39a6c0a4d190ef309d
Change-Id: Ic55489d82b405ca3f49d1989f5743663d66f6b82
1 file changed
tree: 586cfa475f57394277e0f86b91ef5b718100dba8
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. flower
  6. jiri.lock
  7. MILESTONE
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
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.