tp: dpu/tracing_mark_write: ignore tid<->tgid associations during parsing

These events originate from days when the UI track grouping was coupled
to process/thread associations, so some drivers ended up hardcoding
bogus tgids in the event to "group" them in a UI track. Currently we're
parsing those events following the normal B/E/I/C atrace assumptions,
where we trust that the tid of the emitting thread is in the tgid of the
event's body. However since this doesn't hold, we end up with the wrong
thread structure.

This patch selectively overrides the tgid to ignore the incorrect
associations via the existing swapper workarounds.

Bug: 395779936
Change-Id: Ia20dd5e9b2290c467497db64859d15b7df2c95eb
2 files changed
tree: 28b3afff9810a585c0b2dcfe1340c1ed1791ea96
  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. .bazelignore
  19. .bazelrc
  20. .bazelversion
  21. .clang-format
  22. .clang-tidy
  23. .git-blame-ignore-revs
  24. .gitattributes
  25. .gitignore
  26. .gn
  27. .style.yapf
  28. Android.bp
  29. Android.bp.extras
  30. BUILD
  31. BUILD.extras
  32. BUILD.gn
  33. CHANGELOG
  34. codereview.settings
  35. DIR_METADATA
  36. heapprofd.rc
  37. LICENSE
  38. meson.build
  39. METADATA
  40. MODULE.bazel
  41. MODULE.bazel.lock
  42. MODULE_LICENSE_APACHE2
  43. OWNERS
  44. perfetto.rc
  45. perfetto_flags.aconfig
  46. PerfettoIntegrationTests.xml
  47. persistent_cfg.pbtxt
  48. PRESUBMIT.py
  49. README.chromium
  50. README.md
  51. TEST_MAPPING
  52. traced_perf.rc
  53. WATCHLISTS
  54. 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.