test: prefer trace_processor_shell from the host directory.

Before this CL the test script would run inconiditionally
out/xxx/trace_processor_shell. This binary:
On linux/mac builds: was the right binary
On Android and other cross-compiled build: was the host binary
from out/xxx/gcc_like_host that is copied into out/xxx by
the perfetto_host_executable() rule.

The issue is that the logic of perfetto_host_executable()
is not correct in the case of non-hermetic builds, where the
generated executable depends on other libraries (e.g. the
self-built libc++.so for asan/lsan).
This is okay for humans, because the only use case developers
care about, for host+target builds, is typing
out/xxx/trace_processor_shell in android builds.
Instead, in tests, use the explicit out/xxx/gcc_like_host
directory, so the binary uses the right version of libc++.so.

Bug: 141319350
Change-Id: Id69d96a01d144ae91117e98fa8f80f2607ac09d3
1 file changed
tree: f2c2360a612fde5c1be206aa0e304d5363b05c49
  1. bazel/
  2. build_overrides/
  3. buildtools/
  4. debian/
  5. docs/
  6. gn/
  7. include/
  8. infra/
  9. protos/
  10. src/
  11. test/
  12. tools/
  13. ui/
  14. .clang-format
  15. .gitignore
  16. .gn
  17. Android.bp
  18. Android.bp.extras
  19. BUILD
  20. BUILD.extras
  21. BUILD.gn
  22. codereview.settings
  23. heapprofd.rc
  24. MODULE_LICENSE_APACHE2
  25. NOTICE
  26. OWNERS
  27. perfetto.rc
  28. PRESUBMIT.py
  29. README.chromium
  30. README.md
  31. TEST_MAPPING
  32. WORKSPACE
README.md

Perfetto - Performance instrumentation and tracing

Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.

See www.perfetto.dev for docs.

Bugs

  • For bugs affecting Android or the tracing internals use the internal bug tracker (go/perfetto-bugs).
  • For bugs affecting Chrome use http://crbug.com, Component:Speed>Tracing label:Perfetto.