]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86-ibs: Trigger overflow if remaining period is too small
authorRobert Richter <robert.richter@amd.com>
Mon, 2 Apr 2012 18:19:14 +0000 (20:19 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 May 2012 13:23:15 +0000 (15:23 +0200)
commit1b5050fe3b89f4d0ab38470c4ac6f7b99e5dabb3
tree02845a28bbbddb255d3e2c09b281d7f1f1213563
parent44e9f32006874df6328e9ca9c1182629526c8881
perf/x86-ibs: Trigger overflow if remaining period is too small

There are cases where the remaining period is smaller than the minimal
possible value. In this case the counter is restarted with the minimal
period. This is of no use as the interrupt handler will trigger
immediately again and most likely hits itself. This biases the
results.

So, if the remaining period is within the min range, we better do not
restart the counter and instead trigger the overflow.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1333390758-10893-9-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_amd_ibs.c