diff options
author | Yabin Cui <yabinc@google.com> | 2016-07-13 12:18:18 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-07-13 12:27:20 -0700 |
commit | e9f06a6582d70b06a01e8e183081112b109776f6 (patch) | |
tree | f5a978880432edc258bd56ae680bb6a2f8bed05a /simpleperf/cmd_record_test.cpp | |
parent | 6941c09c773560f94e23190ef06390766aaff8fa (diff) | |
download | extras-e9f06a6582d70b06a01e8e183081112b109776f6.tar.gz |
simpleperf: check dump stack size and adjust its default value.
Improve error message by checking if dump stack size > 65528.
And adjust the default dump stack size to 65528, because I
find that it is the value I always want to use.
Bug: 29574526
Change-Id: I8f16dcf3a86a477f17d81fd387bf4dfa0dc0b341
Test: run simpleperf_unit_test.
Diffstat (limited to 'simpleperf/cmd_record_test.cpp')
-rw-r--r-- | simpleperf/cmd_record_test.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp index 9313cbe7..31ea173c 100644 --- a/simpleperf/cmd_record_test.cpp +++ b/simpleperf/cmd_record_test.cpp @@ -141,6 +141,7 @@ TEST(record_cmd, dwarf_callchain_sampling) { if (IsDwarfCallChainSamplingSupported()) { ASSERT_TRUE(RunRecordCmd({"--call-graph", "dwarf"})); ASSERT_TRUE(RunRecordCmd({"--call-graph", "dwarf,16384"})); + ASSERT_FALSE(RunRecordCmd({"--call-graph", "dwarf,65536"})); ASSERT_TRUE(RunRecordCmd({"-g"})); } else { GTEST_LOG_(INFO) << "This test does nothing as dwarf callchain sampling is " |