simpleperf: Add sample_filter_for_perfetto_trace.py

It generates a simpleperf sample filter file based on event timings
from a Perfetto trace.
So we can filter samples based on trace events, and show them in
UIs like pprof.

Bug: 442554552
Bug: 322904339
Test: run sample_filter_for_perfetto_trace.py
Change-Id: I4ce5255b806664ad9897e78750fdf3637f4a8402
4 files changed