summaryrefslogtreecommitdiff
path: root/manual/generic/android/perf.yaml
blob: 5a6a19bf72ad8c480cd13c91d941847b3e2dbaa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
metadata:
    name: andriod-perf
    format: "Manual Test Definition 1.0"
    description: "Test if perf utility works"
    maintainer:
        - botao.sun@linaro.org
    os:
        - android
    scope:
        - functional
    devices:
        - panda
        - panda-es
        - vexpress-a9
        - vexpress-tc2
        - arndale
    environment:
        - manual-test

run:
    steps:
        - "Power on the board to boot into Android main screen"
        - "In serial console, run:
           # perf stat ls"

    expected:
        - "The output of command \"perf stat ls\" should look like this:
           Performance counter stats for 'ls':

            0.659622 task-clock                #    0.665 CPUs utilized          
                  24 context-switches          #    0.036 M/sec                  
                   0 CPU-migrations            #    0.000 K/sec                  
                 273 page-faults               #    0.414 M/sec                  
           1'996'348 cycles                    #    3.027 GHz                     [78.98%]
           1'274'167 stalled-cycles-frontend   #   63.82% frontend cycles idle   
           1'005'419 stalled-cycles-backend    #   50.36% backend  cycles idle   
           1'397'625 instructions              #    0.70  insns per cycle        
                                               #    0.91  stalled cycles per insn
             277'755 branches                  #  421.082 M/sec                  
               7'689 branch-misses             #    2.77% of all branches         [28.76%]

           0.000992095 seconds time elapsed"