summaryrefslogtreecommitdiff
path: root/simpleperf/runtest/runtest.conf
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2017-02-10 12:07:29 -0800
committerYabin Cui <yabinc@google.com>2017-02-10 16:40:06 -0800
commitb92bae84b27889b548214bee8d0730ef10da0c6d (patch)
tree7b21c155090f7f39d1533732d7903d63f5a1b497 /simpleperf/runtest/runtest.conf
parent264b69316cd385d887a2c7beb289eea5b0a9f05d (diff)
downloadextras-b92bae84b27889b548214bee8d0730ef10da0c6d.tar.gz
simpleperf: build libsimpleperf_inplace_sampler library.
libsimpleperf_inplace_sampler.so is a library linked with user's app. It opens a unix socket server and waits for simpleperf's profiling request. This patch doesn't contain code generating real samples, instead it uses a fake sample for testing. Add runtest for 32bit. Increase runtest duration to 2 seconds and adjust some args in runtest.conf to make test result stable. Fix one tiny error in cmd_report.cpp to report correctly in `report --sort comm,symbol`. Bug: http://b/30974760 Test: run simpleperf_unit_test. Test: run runtest.py. Change-Id: I58163fe47f62e6ba7dd684b33a2ce302feb880f5
Diffstat (limited to 'simpleperf/runtest/runtest.conf')
-rw-r--r--simpleperf/runtest/runtest.conf7
1 files changed, 4 insertions, 3 deletions
diff --git a/simpleperf/runtest/runtest.conf b/simpleperf/runtest/runtest.conf
index 863ea996..2fbbd985 100644
--- a/simpleperf/runtest/runtest.conf
+++ b/simpleperf/runtest/runtest.conf
@@ -41,6 +41,7 @@
<test name="function_fork">
<executable name="simpleperf_runtest_function_fork"/>
+ <report option="--sort comm,symbol"/>
<symbol_overhead>
<symbol name="ParentFunction()" min="10" max="90"/>
@@ -48,7 +49,7 @@
</symbol_overhead>
<symbol_children_overhead>
- <symbol name="main" min="10" max="90"/>
+ <symbol name="main" min="10"/>
</symbol_children_overhead>
<symbol_callgraph_relation>
@@ -156,8 +157,8 @@
<executable name="simpleperf_runtest_function_indirect_recursive"/>
<symbol_overhead>
- <symbol name="FunctionRecursiveOne(int)" min="30" max="70"/>
- <symbol name="FunctionRecursiveTwo(int)" min="30" max="70"/>
+ <symbol name="FunctionRecursiveOne(int)" min="20"/>
+ <symbol name="FunctionRecursiveTwo(int)" min="20"/>
</symbol_overhead>
<symbol_children_overhead>