[roll] Roll fuchsia [kernel] Fix ktrace per-CPU buffer init with uneven buffer size

The previous implementation assumed that the provided target buffer
size will divide cleanly among the number of CPUs in the system,
and that the resulting buffer size will be a power of two. This is
obviously not always the case.

This CL fixes the issue by dividing the given buffer size by the
number of CPUs, and then rounding the resulting value down to the
nearest power of two.

Original-Bug: 404539312
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1276860
Original-Revision: ddfbd0b099997e0c2391b3a1308f6b8ccbb77efc
GitOrigin-RevId: 2759e663c08569223faa434e45487d6439e56d62
Change-Id: I849ad7ed3991cb4ac3265a897440bd3d8732d42a
1 file changed
tree: 8454b48df7e1b0fb62f3383a8167a22e9d7e82d3
  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.