linux/arch/alpha
Robert Richter fd0d000b2c perf: Pass last sampling period to perf_sample_data_init()
We always need to pass the last sample period to
perf_sample_data_init(), otherwise the event distribution will be
wrong. Thus, modifiyng the function interface with the required period
as argument. So basically a pattern like this:

        perf_sample_data_init(&data, ~0ULL);
        data.period = event->hw.last_period;

will now be like that:

        perf_sample_data_init(&data, ~0ULL, event->hw.last_period);

Avoids unininitialized data.period and simplifies code.

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-3-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2012-05-09 15:23:12 +02:00
..
boot Disintegrate asm/system.h for Alpha 2012-03-28 18:11:12 +01:00
include/asm alpha: fix build failures from system.h dismemberment 2012-04-13 13:15:16 -04:00
kernel perf: Pass last sampling period to perf_sample_data_init() 2012-05-09 15:23:12 +02:00
lib Disintegrate asm/system.h for Alpha 2012-03-28 18:11:12 +01:00
math-emu alpha: change to new Makefile flag variables 2011-01-17 05:42:13 +01:00
mm Disintegrate asm/system.h for Alpha 2012-03-28 18:11:12 +01:00
oprofile Disintegrate asm/system.h for Alpha 2012-03-28 18:11:12 +01:00
defconfig defconfig reduction 2010-08-14 22:26:53 +02:00
Kconfig alpha: switch to GENERIC_PCI_IOMAP 2011-11-28 21:13:01 +02:00
Kconfig.debug alpha/parisc: remove config variable DEBUG_RWLOCK 2008-02-06 10:41:03 -08:00
Makefile alpha: link failure fix 2008-06-20 16:46:10 -07:00