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

Implements the ReportMetadata method for KTrace when running in per-CPU
mode. This is a combination of the ReportStaticNames and
ReportThreadProcessNames methods in internal::KTraceState.

This CL also updates the tests to verify that the metadata is emitted
exactly once when tracing is started. This required overriding the
ReportMetadata method in a derived class because the thread and process
names are written into the global singleton's trace buffer, which we do
not want to manipulate in tests.

Original-Bug: 404539312
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1250804
Original-Revision: 77bf3682902e8f99d2f7bb049354209b31bf4801
GitOrigin-RevId: d2331a27b7f937898ba98949948b009cf57e9293
Change-Id: Ib6bbd71fadf39a6427e2be0131acc7295beb10c2
1 file changed
tree: 2f59ed63b64d9c9055420eb528ef8cfe522d6d49
  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.