13.18.8. Example of how to accumulate RVISS statistics

For example, you might want to view the counts from the point at which a breakpoint is hit. To do this, you might set a breakpoint that is activated after 10 passes, then create a reference point to show the counts from this point onwards. The following example uses the dhrystone image:

  1. Connect to an RVISS target on the RealView Instruction Set Simulator Debug Interface.

  2. Load the example dhrystone image ...\Debug\dhrystone.axf.

  3. Enter the following command to set a breakpoint:

    BREAKINSTRUCTION,passcount:10 \DHRY_1\#149:1

  4. Start execution.

  5. Enter 1000 when prompted for the number of runs.

  6. When the breakpoint is activated, create your reference point (iter:10):

    STATS,setref iter:10

  7. View the current values:

    > STATS
    Ref_Point Instructions Core_Cycles _S_Cycles _N_Cycles _A_Cycles C_Cycles Total   
    Ref_Cur   00007cb1    0000c703   0000e4b6 00000000 00031279 00000000 0003f72f 
    iter:10   00000000    00000000   00000000 00000000 00000000 00000000 00000000
    
  8. Restart execution.

  9. View the current values:

    > STATS
    Ref_Point Instructions Core_Cycles _S_Cycles _N_Cycles _A_Cycles C_Cycles Total   
    Ref_Cur   00007e97    0000ca13   0000e800 00000000 00031e87 00000000 00040687 
    iter:10   000001e6    00000310   0000034a 00000000 00000c0e 00000000 00000f58
    
  10. You can create additional reference points as required.

See also

  • the following in the RealView Debugger Command Line Reference Guide:

  • RealView ARMulator ISS User Guide.

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0153N
Non-ConfidentialID052111