ARM: bL_switcher/trace: Add trace trigger for trace bootstrapping
authorDave Martin <dave.martin@linaro.org>
Wed, 6 Feb 2013 15:45:23 +0000 (15:45 +0000)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Thu, 20 Jun 2013 04:45:29 +0000 (00:45 -0400)
commitb87db1b9e394f0d6c25bb9a4d2c85144fc571b5d
tree249aa384b8045b9d911d8399ce640172d2fe2616
parentd4d434a82421008a452acd022cd6730feb20851b
ARM: bL_switcher/trace: Add trace trigger for trace bootstrapping

When tracing switching, an external tracer needs a way to bootstrap
its knowledge of the logical<->physical CPU mapping.

This patch adds a sysfs attribute trace_trigger.  A write to this
attribute will generate a power:cpu_migrate_current event for each
online CPU, indicating the current physical CPU for each logical
CPU.

Activating or deactivating the switcher also generates these
events, so that the tracer knows about the resulting remapping of
affected CPUs.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
arch/arm/common/bL_switcher.c
include/trace/events/power_cpu_migrate.h