diff options
author | Yabin Cui <yabinc@google.com> | 2016-06-23 17:11:14 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-06-23 17:26:25 -0700 |
commit | 1761a271faf98050891ba6e918993225782c811a (patch) | |
tree | a97f1ecc2a0e7a16222229d9468d77c43d03c168 /simpleperf/cmd_report_test.cpp | |
parent | 965a99e493aea5ec88bda89629e969e3226c262c (diff) | |
download | extras-1761a271faf98050891ba6e918993225782c811a.tar.gz |
Simpleperf: Add SPLIT and SPLIT_END records to handle big records.
Previously we split KernelSymbolRecord because it is > 65535. Then
I found TracingDataRecord can also be > 65535. So it is better to
handle big records when reading and writing perf.data.
record_file_writer.cpp splits a big record into multiple SPLIT
records followed by a SPLIT_END record, and record_file_reader.cpp
restores the big record when reading SPLIT and SPLIT_END records.
Also Add RecordHeader to represent record having size > 65535.
Bug: 29581559
Change-Id: I0b4556988f77b3431c7f1a28fce65cf225d6a067
Test: run simpleperf_unit_test.
Diffstat (limited to 'simpleperf/cmd_report_test.cpp')
-rw-r--r-- | simpleperf/cmd_report_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_report_test.cpp b/simpleperf/cmd_report_test.cpp index fe85f2fb..f987a7a0 100644 --- a/simpleperf/cmd_report_test.cpp +++ b/simpleperf/cmd_report_test.cpp @@ -287,7 +287,7 @@ TEST_F(ReportCommandTest, report_more_than_one_event_types) { TEST_F(ReportCommandTest, report_kernel_symbol) { Report(PERF_DATA_WITH_KERNEL_SYMBOL); ASSERT_TRUE(success); - ASSERT_NE(content.find("perf_event_comm_output"), std::string::npos); + ASSERT_NE(content.find("perf_event_aux"), std::string::npos); } TEST_F(ReportCommandTest, report_dumped_symbols) { |