[roll] Roll fuchsia [starnix] Add test to retrieve mmap() perf_event_mmap_page metadata page

This test sets up perf_event_open for sampling, and then calls mmap() to save some data into memory. It then checks whether some of the metadata params are being populated. The params are mostly hardcoded for now so that we can get an E2E example working.

Changes the import to use starnix_uapi instead of linux_uapi.

Changes an EINVAL to ENOSYS because they are meant to be implemented, and aren't invalid.

Also realized that perf_event_open() is meant to return an int (int32), not a long, so updated that. Caught this when having trouble passing it into mmap().

Testing:
```
fx test -o fuchsia-pkg://fuchsia.com/starnix_syscalls_cpp_tests#meta/perf_event_open_test.cm
sudo ~/fuchsia/out/default/linux_x64/perf_event_open_test_bin
```

Original-Bug: 398914921
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1270474
Original-Revision: c6f28ecce1b06d9f79623dbf909b54e10d0279ef
GitOrigin-RevId: 39bd3c2cdb161edcdbe5caf58f6fe6f1e7864970
Change-Id: I3d2a9f28861794c48dd0bf424187a3aba413f1a1
1 file changed
tree: bc50da18edb9661e9f787c31c403746f5c0500a4
  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.