test: Fix CTS tests on user builds.

CTS tests on user builds fail, because the `sched/sched_process_fork`
event in not accessible (unlike on userdebug builds).

Let's use sched/sched_switch instead. The exact event doesn't matter, we
just need an event that can be successfully enabled.

History of the test:

* On android 12, the `PerfettoFtraceIntegrationTest` suite was happily
  included on CTS tests and was passing on user and userdebug build.
* We mistakenly removed suite from CTS on android 13 with
  https://r.android.com/1952222, but it was kept in
  `perfetto_integrationtests` (which were only run on **userdebug**).
* We added a new test to the suite in https://r.android.com/2027444.
* I readded the `PerfettoFtraceIntegrationTest` in
  https://r.android.com/2612391

Tested by running:

```
atest CtsPerfettoTestCases:PerfettoFtraceIntegrationTest#ReportFtraceFailuresInStats -- --abi arm64-v8a
```

on a user master build.

Bug: 288274277
Bug: 291679694
Bug: 289783494
Bug: 291870885
(cherry picked from https://android-review.googlesource.com/q/commit:d04c69d715d45a75c9ccc44e527b8951570eed10)
Merged-In: Ifea07f718bbbd4917170604c3470475811e48b3b
Change-Id: Ifea07f718bbbd4917170604c3470475811e48b3b
(cherry picked from commit 11dc17dc6ad015caf8c3d208f318d5d6ec572a3e)
1 file changed
tree: bbc79610a6a6f563991d7b84e902085f938cd4d0
  1. .github/
  2. bazel/
  3. build_overrides/
  4. buildtools/
  5. debian/
  6. docs/
  7. examples/
  8. gn/
  9. include/
  10. infra/
  11. protos/
  12. python/
  13. src/
  14. test/
  15. third_party/
  16. tools/
  17. ui/
  18. .clang-format
  19. .clang-tidy
  20. .git-blame-ignore-revs
  21. .gitattributes
  22. .gitignore
  23. .gn
  24. .style.yapf
  25. Android.bp
  26. Android.bp.extras
  27. BUILD
  28. BUILD.extras
  29. BUILD.gn
  30. CHANGELOG
  31. codereview.settings
  32. DIR_METADATA
  33. heapprofd.rc
  34. LICENSE
  35. meson.build
  36. METADATA
  37. MODULE_LICENSE_APACHE2
  38. OWNERS
  39. perfetto.rc
  40. PerfettoIntegrationTests.xml
  41. PRESUBMIT.py
  42. README.chromium
  43. README.md
  44. TEST_MAPPING
  45. traced_perf.rc
  46. WORKSPACE
README.md

Perfetto - System profiling, app tracing and trace analysis

Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.

See https://perfetto.dev/docs or the /docs/ directory for documentation.