Kallsyms: fix detection when first lines are zero

This CL fixes a couple of issues and re-enables the
test on non-cuttlefish:
- The first entries of /proc/kallsyms can be
  zero even when kptr_restrict is lowered. Improve
  the heuristic for that by looking at the first page.
- make the KernelAddressSymbolization run for longer
  and re-enable it. Because the symbolizer is initialized
  asynchronously, we need to give time to the traced_probes
  process to enqueue the PostTask, before sending the stop.
  Othewise traced_probes might end up running, in sequence:
  Start, Stop, InitializeSymbolizer.
- Re-enable the KernelAddressSymbolization but not on
  cuttlefish. cf on GCE seems too slow and it would hit the
  timeout in the production code. Not worth incrementing that
  to deal with slow emulators. Our CI is fine because on
  standalone builds we don't use the setprop & wait-with-timeout
  path but directly lower kptr_restrict.

Test: perfetto_integrationtests
Change-Id: I9e0933d11f25a9b79198cd70927d88d400454a42
7 files changed
tree: 3d63220e76e618243390f81b1f025d3905b7dc35
  1. bazel/
  2. build_overrides/
  3. buildtools/
  4. debian/
  5. docs/
  6. examples/
  7. gn/
  8. include/
  9. infra/
  10. protos/
  11. src/
  12. test/
  13. tools/
  14. ui/
  15. .clang-format
  16. .clang-tidy
  17. .gitignore
  18. .gn
  19. .style.yapf
  20. Android.bp
  21. Android.bp.extras
  22. BUILD
  23. BUILD.extras
  24. BUILD.gn
  25. CHANGELOG
  26. codereview.settings
  27. heapprofd.rc
  28. LICENSE
  29. METADATA
  30. MODULE_LICENSE_APACHE2
  31. OWNERS
  32. perfetto.rc
  33. PRESUBMIT.py
  34. README.chromium
  35. README.md
  36. TEST_MAPPING
  37. traced_perf.rc
  38. 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.