]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86-ibs: Fix update of period
authorRobert Richter <robert.richter@amd.com>
Mon, 2 Apr 2012 18:19:07 +0000 (20:19 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 May 2012 13:23:11 +0000 (15:23 +0200)
commitb70ca5d63c539cb6c6b389c54ba3cc30da71ac9b
tree41d89325e579c8962cdac056c887db6eb5acce6c
parent5daa8b559b957b7981212871ef74cc084c598cc2
perf/x86-ibs: Fix update of period

The last sw period was not correctly updated on overflow and thus led
to wrong distribution of events. We always need to properly initialize
data.period in struct perf_sample_data.

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-2-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_amd_ibs.c