Download A generic attack on hashing-based software tamper

Transcript
A.5. Performance Monitoring
89
Algorithm A.1 Branch Prediction Performance Counter Interrupt
1: t ← 0
2: c ← −100
3: procedure Counter Interrupt
. Occurs when c = 0
4:
t ← t + 100
5:
c ← −100
6: end procedure
• Integer/Floating point operations performed
• Loads/Stores issued
• ITLB/DTLB hits/misses
• Instruction/Data cache hits/misses
• Branch Prediction successes/failures
The processor also has the ability to track performance counters depending on
the privilege level of the processor. This makes it possible to isolate the performance
of an application from the performance of the underlying operating system. The
performance counter will not be incremented when running within the operating
system. Because the performance counter is not incremented when working from
within the operating system, interrupts will also not be generated for performance
counter overflows from within the operating system.