Home | History | Annotate | Download | only in runtest
      1 <runtests>
      2 <test name="one_function">
      3   <executable name="simpleperf_runtest_one_function"/>
      4 
      5   <symbol_overhead>
      6     <symbol name="Function1()" min="90" max="100"/>
      7   </symbol_overhead>
      8 
      9   <symbol_children_overhead>
     10     <symbol name="main" min="90" max="100"/>
     11   </symbol_children_overhead>
     12 
     13   <symbol_callgraph_relation>
     14     <symbol name="Function1()">
     15       <symbol name="main"/>
     16     </symbol>
     17   </symbol_callgraph_relation>
     18 </test>
     19 
     20 <test name="two_functions">
     21   <executable name="simpleperf_runtest_two_functions"/>
     22 
     23   <symbol_overhead>
     24     <symbol name="Function1()" min="30" max="70"/>
     25     <symbol name="Function2()" min="30" max="70"/>
     26   </symbol_overhead>
     27 
     28   <symbol_children_overhead>
     29     <symbol name="main" min="90" max="100"/>
     30   </symbol_children_overhead>
     31 
     32   <symbol_callgraph_relation>
     33     <symbol name="Function1()">
     34       <symbol name="main"/>
     35     </symbol>
     36     <symbol name="Function2()">
     37       <symbol name="main"/>
     38     </symbol>
     39   </symbol_callgraph_relation>
     40 </test>
     41 
     42 <test name="function_fork">
     43   <executable name="simpleperf_runtest_function_fork"/>
     44 
     45   <symbol_overhead>
     46     <symbol name="ParentFunction()" min="10" max="90"/>
     47     <symbol name="ChildFunction()" min="10" max="90"/>
     48   </symbol_overhead>
     49 
     50   <symbol_children_overhead>
     51     <symbol name="main" min="10" max="90"/>
     52   </symbol_children_overhead>
     53 
     54   <symbol_callgraph_relation>
     55     <symbol name="ParentFunction()">
     56       <symbol name="main"/>
     57     </symbol>
     58     <symbol name="ChildFunction()">
     59       <symbol name="main"/>
     60     </symbol>
     61   </symbol_callgraph_relation>
     62 </test>
     63 
     64 <test name="function_pthread">
     65   <executable name="simpleperf_runtest_function_pthread"/>
     66 
     67   <symbol_overhead>
     68     <symbol name="MainThreadFunction()" min="20" max="80"/>
     69     <symbol name="ChildThreadFunction(void*)" min="20" max="80"/>
     70   </symbol_overhead>
     71 
     72   <symbol_children_overhead>
     73     <symbol name="main" min="20" max="80"/>
     74   </symbol_children_overhead>
     75 
     76   <symbol_callgraph_relation>
     77     <symbol name="MainThreadFunction()">
     78       <symbol name="main"/>
     79     </symbol>
     80   </symbol_callgraph_relation>
     81 </test>
     82 
     83 <test name="comm_change">
     84   <executable name="simpleperf_runtest_comm_change"/>
     85 
     86   <symbol_overhead>
     87     <symbol name="Function1()" comm="RUN_COMM1" min="30" max="70"/>
     88     <symbol name="Function1()" comm="RUN_COMM2" min="30" max="70"/>
     89   </symbol_overhead>
     90 
     91   <symbol_children_overhead>
     92     <symbol name="main" comm="RUN_COMM1" min="30" max="70"/>
     93     <symbol name="main" comm="RUN_COMM2" min="30" max="70"/>
     94   </symbol_children_overhead>
     95 
     96   <symbol_callgraph_relation>
     97     <symbol name="Function1()" comm="RUN_COMM1">
     98       <symbol name="main"/>
     99     </symbol>
    100     <symbol name="Function1()" comm="RUN_COMM2">
    101       <symbol name="main"/>
    102     </symbol>
    103   </symbol_callgraph_relation>
    104 
    105 </test>
    106 
    107 <test name="function_recursive">
    108   <executable name="simpleperf_runtest_function_recursive"/>
    109 
    110   <symbol_overhead>
    111     <symbol name="FunctionRecursive(int)" min="90"/>
    112   </symbol_overhead>
    113 
    114   <symbol_children_overhead>
    115     <symbol name="main" min="90"/>
    116   </symbol_children_overhead>
    117 
    118   <symbol_callgraph_relation>
    119     <symbol name="FunctionRecursive(int)">
    120       <symbol name="FunctionRecursive(int)">
    121         <symbol name="FunctionRecursive(int)">
    122           <symbol name="FunctionRecursive(int)">
    123             <symbol name="FunctionRecursive(int)">
    124               <symbol name="FunctionRecursive(int)">
    125                 <symbol name="FunctionRecursive(int)">
    126                   <symbol name="FunctionRecursive(int)">
    127                     <symbol name="FunctionRecursive(int)">
    128                       <symbol name="FunctionRecursive(int)">
    129                         <symbol name="FunctionRecursive(int)">
    130                           <symbol name="main"/>
    131                         </symbol>
    132                         <symbol name="main"/>
    133                       </symbol>
    134                       <symbol name="main"/>
    135                     </symbol>
    136                     <symbol name="main"/>
    137                   </symbol>
    138                   <symbol name="main"/>
    139                 </symbol>
    140                 <symbol name="main"/>
    141               </symbol>
    142               <symbol name="main"/>
    143             </symbol>
    144             <symbol name="main"/>
    145           </symbol>
    146           <symbol name="main"/>
    147         </symbol>
    148         <symbol name="main"/>
    149       </symbol>
    150       <symbol name="main"/>
    151     </symbol>
    152   </symbol_callgraph_relation>
    153 </test>
    154 
    155 <test name="function_indirect_recursive">
    156   <executable name="simpleperf_runtest_function_indirect_recursive"/>
    157 
    158   <symbol_overhead>
    159     <symbol name="FunctionRecursiveOne(int)" min="30" max="70"/>
    160     <symbol name="FunctionRecursiveTwo(int)" min="30" max="70"/>
    161   </symbol_overhead>
    162 
    163   <symbol_children_overhead>
    164     <symbol name="FunctionRecursiveOne(int)" min="90"/>
    165     <symbol name="FunctionRecursiveTwo(int)" min="80"/>
    166   </symbol_children_overhead>
    167 
    168   <symbol_callgraph_relation>
    169     <symbol name="FunctionRecursiveOne(int)">
    170       <symbol name="FunctionRecursiveTwo(int)">
    171         <symbol name="FunctionRecursiveOne(int)">
    172           <symbol name="FunctionRecursiveTwo(int)">
    173             <symbol name="FunctionRecursiveOne(int)"/>
    174           </symbol>
    175           <symbol name="main"/>
    176         </symbol>
    177       </symbol>
    178       <symbol name="main"/>
    179     </symbol>
    180 
    181     <symbol name="FunctionRecursiveTwo(int)">
    182       <symbol name="FunctionRecursiveOne(int)">
    183         <symbol name="FunctionRecursiveTwo(int)">
    184           <symbol name="FunctionRecursiveOne(int)">
    185             <symbol name="FunctionRecursiveTwo(int)">
    186             </symbol>
    187             <symbol name="main"/>
    188           </symbol>
    189         </symbol>
    190         <symbol name="main"/>
    191       </symbol>
    192     </symbol>
    193   </symbol_callgraph_relation>
    194 </test>
    195 
    196 <test name="selected_comm">
    197   <executable name="simpleperf_runtest_comm_change"/>
    198   <report option="--comms RUN_COMM1"/>
    199 
    200   <symbol_overhead>
    201     <symbol comm="RUN_COMM1" min="100" max="100"/>
    202   </symbol_overhead>
    203 </test>
    204 
    205 </runtests>
    206