AnsweredAssumed Answered

How perf measure  instructions and branch misses on e500

Question asked by Amit Tomar Employee on Sep 9, 2014
Latest reply on Mar 2, 2015 by Amit Tomar

I have run the following command on T4240 board.

 

#perf stat ls

 

Performance counter stats for 'ls':

 

          2.712256 task-clock                #    0.744 CPUs utilized

                 1 context-switches          #    0.369 K/sec

                 0 cpu-migrations            #    0.000 K/sec

               241 page-faults               #    0.089 M/sec

                 0 cycles                    #    0.000 GHz

   <not supported> stalled-cycles-frontend

   <not supported> stalled-cycles-backend

                 0 instructions              #    0.00  insns per cycle

                 0 branches                  #    0.000 K/sec

                 0 branch-misses             #    0.00% of all branches

 

       0.003646108 seconds time elapsed

 

Would like to know how perf measure instruction,branches and branch-misses,why 0 for all these three fields?

 

Which particular registers perf reads to know about count of instruction,branches and branch-misses?


Thanks

Amit

Outcomes