summaryrefslogtreecommitdiffstats
path: root/arch/arm/common/bL_switcher.c
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-09-23 18:47:31 -0400
commit29064b88466ee725613db16d8c05b0ec5443a309 (patch)
treefc0ca8234e305feaebb5599cdbff759cd12a7537 /arch/arm/common/bL_switcher.c
parentb09bbe5b1267b6af22a9584d614f5eec5d74f405 (diff)
downloadlinux-29064b88466ee725613db16d8c05b0ec5443a309.tar.bz2
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/bL_switcher.c')
-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 f0dc025077d5..f4878a36047a 100644
--- a/arch/arm/common/bL_switcher.c
+++ b/arch/arm/common/bL_switcher.c
@@ -537,7 +537,7 @@ static void bL_switcher_trace_trigger_cpu(void *__always_unused info)
trace_cpu_migrate_current(get_ns(), read_mpidr());
}
-static int bL_switcher_trace_trigger(void)
+int bL_switcher_trace_trigger(void)
{
int ret;
@@ -550,6 +550,7 @@ static int bL_switcher_trace_trigger(void)
return ret;
}
+EXPORT_SYMBOL_GPL(bL_switcher_trace_trigger);
static int bL_switcher_enable(void)
{