Added perfmon interrupt handling to allow overflow based profiling
authorDavide Libenzi <dlibenzi@google.com>
Mon, 16 Nov 2015 15:13:13 +0000 (07:13 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 16 Dec 2015 21:27:06 +0000 (16:27 -0500)
commit72515d2a2c8abf6ce1dd882bb81c52878c1a6f4a
tree6c6c7b3cc58fac8eead49ecf902a2bb3cb5f3461
parent19cefd26fbc3555109d0bbae1b483c60c2fba4f7
Added perfmon interrupt handling to allow overflow based profiling

Added perfmon interrupt handling to allow overflow based profiling.
This allow to set the INT bit in the Intel perfmon counter
configuration, and, by setting an initial counter value close to
the overflow, to sample code which triggers overflowing the most.

Signed-off-by: Davide Libenzi <dlibenzi@google.com>
[checkpatch complaints]
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/perfmon.c
kern/arch/x86/perfmon.h
kern/arch/x86/ros/perfmon.h [new file with mode: 0644]
kern/arch/x86/trap.c