[roll] Roll fuchsia [thread_sampler] Disable Ints While Writing Samples

Interrupts are enabled while we are taking samples because we need to
allow interrupts to usercopy. However, because they aren't disabled,
this allows the possibility that we begin writing, set the pending
write, then are context switched out. Another thread would then attempt
to write a sample on the same cpu, violating the assertion that there
isn't a pending write.

Since the trace buffer is mapped and pinned, it is safe to write to it
while interrupts are off, so we now do so.

Testing:

Without the interrupts change, ThreadSampler.HighFrequency consistently
hits the assertion fail. With the added disabled interrupts it now
passes.

Original-Fixed: 379166110
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1159872
Original-Revision: 49cb658aab947d662cebbfee465d83a554d07808
GitOrigin-RevId: 4fa65910cd32aff10802aa7551e42559934f5bc2
Change-Id: If37ba8b848ca4386f8b8e2ea7857d9f4a5440d0e
1 file changed
tree: 9aa5c75ee2662e5e811a98ecc7c3fe7a059ce77d
  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.