summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_report_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2018-03-21 14:34:29 -0700
committerYabin Cui <yabinc@google.com>2018-03-21 14:44:09 -0700
commit8cd9233b017d3fd0389c2650fcbbae74ef8ced12 (patch)
treebeb2bcd49628a4015b45af037193fdd6b8065202 /simpleperf/cmd_report_test.cpp
parent7d2ecc6c0b1c6ecb4c46cc2f981e43461958a6bc (diff)
downloadextras-8cd9233b017d3fd0389c2650fcbbae74ef8ced12.tar.gz
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 Test: run simpleperf_unit_test. Change-Id: Ib5ebd0b6f981b00c2a256d17cdfd0e725d75a272
Diffstat (limited to 'simpleperf/cmd_report_test.cpp')
-rw-r--r--simpleperf/cmd_report_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/simpleperf/cmd_report_test.cpp b/simpleperf/cmd_report_test.cpp
index 28f226d2..6ebbf31e 100644
--- a/simpleperf/cmd_report_test.cpp
+++ b/simpleperf/cmd_report_test.cpp
@@ -486,6 +486,11 @@ TEST_F(ReportCommandTest, report_offcpu_time) {
ASSERT_TRUE(found);
}
+TEST_F(ReportCommandTest, report_big_trace_data) {
+ Report(PERF_DATA_WITH_BIG_TRACE_DATA);
+ ASSERT_TRUE(success);
+}
+
#if defined(__linux__)
#include "event_selection_set.h"