simpleperf: fix parsing perf.data generated by --trace-offcpu option.

When parsing perf.data generated by --trace-offcpu option, report_lib_interface
mixes all samples from cpu-cycles (or other events) and sched:sched_switch, and
uses timestamp difference as sample period. However, it still shows both event
names. This makes report_html.py generate sample table for each event name
separately. To fix this, this CL uses event name cpu-cycles for all samples.

Bug: http://b/66914187
Test: run report_html.py on perf.data generated by --trace-offcpu.
Test: run python test.py TestReportLib.test_offcpu.
Change-Id: Ic5f2e64564355f860283085fc691ead4134affa1
2 files changed