diff options
author | Yabin Cui <yabinc@google.com> | 2016-12-13 17:49:19 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-12-13 17:49:19 -0800 |
commit | 044861ba8d71688940b6500f68458fae0791517c (patch) | |
tree | 267a1f73589087ec4059c305fd9d86708d3f1928 /simpleperf/get_test_data.h | |
parent | 923268ef1e53edb06f088c11193e2214053d48df (diff) | |
download | extras-044861ba8d71688940b6500f68458fae0791517c.tar.gz |
simpleperf: check invalid perf.data.
Bug: http://b/33558210
Test: run simpleperf_unit_test.
Change-Id: If5a1f7fc9c436a39776f80f1e52479f1cd7ff407
Diffstat (limited to 'simpleperf/get_test_data.h')
-rw-r--r-- | simpleperf/get_test_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/simpleperf/get_test_data.h b/simpleperf/get_test_data.h index 4550843e..9fb2293c 100644 --- a/simpleperf/get_test_data.h +++ b/simpleperf/get_test_data.h @@ -102,4 +102,7 @@ static const std::string PERF_DATA_GENERATED_BY_LINUX_PERF = "generated_by_linux // generated by `simpleperf record -g ls`. static const std::string PERF_DATA_MAX_STACK_AND_PERCENT_LIMIT = "perf_test_max_stack_and_percent_limit.data"; +// generated by `dd if=/dev/zero of=invalid_perf.data bs=1024 count=1`. +static const std::string INVALID_PERF_DATA = "invalid_perf.data"; + #endif // SIMPLE_PERF_GET_TEST_DATA_H_ |