linux_dsm_epyc7002/arch/powerpc/perf
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
..
callchain.c powerpc/perf: Move perf core & PMU code into a subdirectory 2012-02-23 10:50:04 +11:00
core-book3s.c perf: Pass last sampling period to perf_sample_data_init() 2012-05-09 15:23:12 +02:00
core-fsl-emb.c perf: Pass last sampling period to perf_sample_data_init() 2012-05-09 15:23:12 +02:00
e500-pmu.c powerpc/perf: Move perf core & PMU code into a subdirectory 2012-02-23 10:50:04 +11:00
Makefile powerpc/perf: Move perf core & PMU code into a subdirectory 2012-02-23 10:50:04 +11:00
mpc7450-pmu.c powerpc/perf: Move perf core & PMU code into a subdirectory 2012-02-23 10:50:04 +11:00
power4-pmu.c powerpc/perf: Fix instruction address sampling on 970 and Power4 2012-03-28 11:33:24 +11:00
power5-pmu.c powerpc/perf: Move perf core & PMU code into a subdirectory 2012-02-23 10:50:04 +11:00
power5+-pmu.c powerpc/perf: Move perf core & PMU code into a subdirectory 2012-02-23 10:50:04 +11:00
power6-pmu.c powerpc/perf: Move perf core & PMU code into a subdirectory 2012-02-23 10:50:04 +11:00
power7-pmu.c powerpc/perf: Move perf core & PMU code into a subdirectory 2012-02-23 10:50:04 +11:00
ppc970-pmu.c powerpc/perf: Fix instruction address sampling on 970 and Power4 2012-03-28 11:33:24 +11:00