acrn-kernel/arch/powerpc/configs
Maynard Johnson 18f2190d79 [POWERPC] cell: Add oprofile support
Add PPU event-based and cycle-based profiling support to Oprofile for Cell.

Oprofile is expected to collect data on all CPUs simultaneously.
However, there is one set of performance counters per node.  There are
two hardware threads or virtual CPUs on each node.  Hence, OProfile must
multiplex in time the performance counter collection on the two virtual
CPUs.

The multiplexing of the performance counters is done by a virtual
counter routine.  Initially, the counters are configured to collect data
on the even CPUs in the system, one CPU per node.  In order to capture
the PC for the virtual CPU when the performance counter interrupt occurs
(the specified number of events between samples has occurred), the even
processors are configured to handle the performance counter interrupts
for their node.  The virtual counter routine is called via a kernel
timer after the virtual sample time.  The routine stops the counters,
saves the current counts, loads the last counts for the other virtual
CPU on the node, sets interrupts to be handled by the other virtual CPU
and restarts the counters, the virtual timer routine is scheduled to run
again.  The virtual sample time is kept relatively small to make sure
sampling occurs on both CPUs on the node with a relatively small
granularity.  Whenever the counters overflow, the performance counter
interrupt is called to collect the PC for the CPU where data is being
collected.

The oprofile driver relies on a firmware RTAS call to setup the debug bus
to route the desired signals to the performance counter hardware to be
counted.  The RTAS call must set the routing registers appropriately in
each of the islands to pass the signals down the debug bus as well as
routing the signals from a particular island onto the bus.  There is a
second firmware RTAS call to reset the debug bus to the non pass thru
state when the counters are not in use.

Signed-off-by: Carl Love <carll@us.ibm.com>
Signed-off-by: Maynard Johnson <mpjohn@us.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-12-04 20:40:14 +11:00
..
cell_defconfig [POWERPC] cell: Add oprofile support 2006-12-04 20:40:14 +11:00
chrp32_defconfig [POWERPC] update powerpc defconfig files after libata kconfig breakage 2006-09-26 15:41:03 +10:00
g5_defconfig [POWERPC] update powerpc defconfig files after libata kconfig breakage 2006-09-26 15:41:03 +10:00
iseries_defconfig [POWERPC] Update iseries_defconfig 2006-10-07 10:10:17 +10:00
maple_defconfig [POWERPC] Update maple defconfig 2006-10-10 11:54:26 +10:00
mpc85xx_cds_defconfig [POWERPC] Update defconfigs 2006-09-10 11:04:36 +10:00
mpc834x_itx_defconfig [POWERPC] Add DOS partition table support to mpc834x_itx_defconfig 2006-10-16 15:52:14 +10:00
mpc834x_mds_defconfig [POWERPC] Update defconfigs 2006-09-10 11:04:36 +10:00
mpc7448_hpc2_defconfig [POWERPC] update powerpc defconfig files after libata kconfig breakage 2006-09-26 15:41:03 +10:00
mpc8360emds_defconfig [POWERPC] Add MPC8360EMDS board support 2006-10-04 15:24:27 +10:00
mpc8540_ads_defconfig [POWERPC] Update defconfigs 2006-09-10 11:04:36 +10:00
mpc8560_ads_defconfig POWERPC: Add support for the mpc8560 eval board 2006-09-21 22:31:26 +04:00
mpc8641_hpcn_defconfig [POWERPC] Update defconfigs 2006-09-10 11:04:36 +10:00
pmac32_defconfig [POWERPC] update powerpc defconfig files after libata kconfig breakage 2006-09-26 15:41:03 +10:00
ppc64_defconfig [POWERPC] update powerpc defconfig files after libata kconfig breakage 2006-09-26 15:41:03 +10:00
pseries_defconfig [PATCH] Reintroduce NODES_SPAN_OTHER_NODES for powerpc 2006-10-21 13:35:06 -07:00