summaryrefslogtreecommitdiffstats
path: root/include/trace/events
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2013-02-06 16:45:23 +0100
committerNicolas Pitre <nicolas.pitre@linaro.org>2013-09-24 00:47:30 +0200
commitb09bbe5b1267b6af22a9584d614f5eec5d74f405 (patch)
tree37ed44d02645710a5a70d0853f8c9dc3459ed667 /include/trace/events
parentARM: bL_switcher: Basic trace events support (diff)
downloadlinux-b09bbe5b1267b6af22a9584d614f5eec5d74f405.tar.xz
linux-b09bbe5b1267b6af22a9584d614f5eec5d74f405.zip
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>
Diffstat (limited to 'include/trace/events')
-rw-r--r--include/trace/events/power_cpu_migrate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/trace/events/power_cpu_migrate.h b/include/trace/events/power_cpu_migrate.h
index 3694af0f5bc5..f76dd4de625e 100644
--- a/include/trace/events/power_cpu_migrate.h
+++ b/include/trace/events/power_cpu_migrate.h
@@ -42,6 +42,7 @@ DECLARE_EVENT_CLASS(cpu_migrate,
__define_cpu_migrate_event(begin);
__define_cpu_migrate_event(finish);
+__define_cpu_migrate_event(current);
#undef __define_cpu_migrate
#undef __cpu_migrate_proto