simpleperf: add SIMPLE_PERF_RECORD_TRACE_DATA record type.

PERF_RECORD_TRACE_DATA can't have record size >= 64K. This causes
some aborts when recording tracepoint events, as in
https://github.com/android-ndk/ndk/issues/493.

So fix this by adding a custom type SIMPLE_PERF_RECORD_TRACING_DATA,
which isn't limited by 64K.

Also fix an error parsing formats of tracepoing events.

Bug: http://b/75278602
Bug: http://b/80438359
Test: run CtsSimpelperfTestCases.
Change-Id: Ib5ebd0b6f981b00c2a256d17cdfd0e725d75a272
(cherry picked from commit 8cd9233b017d3fd0389c2650fcbbae74ef8ced12)
8 files changed