aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/common
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2013-02-11 14:39:19 +0000
committerNicolas Pitre <nicolas.pitre@linaro.org>2013-05-13 19:03:41 -0400
commitde2773b359751f6abf40b1112b07c1d1da26e786 (patch)
treed08068bfcd626e323f80b5eb5e5b96ce51ed5f27 /arch/arm/common
parent56e453ef248c69627f35c7c901838398a4f8bdd4 (diff)
downloadvexpress-lsk-de2773b359751f6abf40b1112b07c1d1da26e786.tar.gz
ARM: bL_switcher/trace: Add kernel trace trigger interface
This patch exports a bL_switcher_trace_trigger() function to provide a means for drivers using the trace events to get the current status when starting a trace session. Calling this function is equivalent to pinging the trace_trigger file in sysfs. Signed-off-by: Dave Martin <dave.martin@linaro.org>
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/bL_switcher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/common/bL_switcher.c b/arch/arm/common/bL_switcher.c
index b878e6f6dd5..1506bf536d1 100644
--- a/arch/arm/common/bL_switcher.c
+++ b/arch/arm/common/bL_switcher.c
@@ -464,7 +464,7 @@ static void bL_switcher_trace_trigger_cpu(void *__always_unused info)
trace_cpu_migrate_current(get_ns(), read_mpidr() & MPIDR_HWID_BITMASK);
}
-static int bL_switcher_trace_trigger(void)
+int bL_switcher_trace_trigger(void)
{
int ret;
@@ -477,6 +477,7 @@ static int bL_switcher_trace_trigger(void)
return ret;
}
+EXPORT_SYMBOL_GPL(bL_switcher_trace_trigger);
static int bL_switcher_enable(void)
{