diff options
author | Dave Martin <dave.martin@linaro.org> | 2013-02-11 09:39:19 -0500 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2013-09-23 18:47:31 -0400 |
commit | 29064b88466ee725613db16d8c05b0ec5443a309 (patch) | |
tree | fc0ca8234e305feaebb5599cdbff759cd12a7537 /arch/arm/include | |
parent | b09bbe5b1267b6af22a9584d614f5eec5d74f405 (diff) |
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/include')
-rw-r--r-- | arch/arm/include/asm/bL_switcher.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/bL_switcher.h b/arch/arm/include/asm/bL_switcher.h index 7d1cce8b8a0d..8ada5a885c70 100644 --- a/arch/arm/include/asm/bL_switcher.h +++ b/arch/arm/include/asm/bL_switcher.h | |||
@@ -54,6 +54,8 @@ int bL_switcher_unregister_notifier(struct notifier_block *nb); | |||
54 | bool bL_switcher_get_enabled(void); | 54 | bool bL_switcher_get_enabled(void); |
55 | void bL_switcher_put_enabled(void); | 55 | void bL_switcher_put_enabled(void); |
56 | 56 | ||
57 | int bL_switcher_trace_trigger(void); | ||
58 | |||
57 | #else | 59 | #else |
58 | static inline int bL_switcher_register_notifier(struct notifier_block *nb) | 60 | static inline int bL_switcher_register_notifier(struct notifier_block *nb) |
59 | { | 61 | { |
@@ -67,6 +69,7 @@ static inline int bL_switcher_unregister_notifier(struct notifier_block *nb) | |||
67 | 69 | ||
68 | static inline bool bL_switcher_get_enabled(void) { return false; } | 70 | static inline bool bL_switcher_get_enabled(void) { return false; } |
69 | static inline void bL_switcher_put_enabled(void) { } | 71 | static inline void bL_switcher_put_enabled(void) { } |
72 | static inline int bL_switcher_trace_trigger(void) { return 0; } | ||
70 | #endif /* CONFIG_BL_SWITCHER */ | 73 | #endif /* CONFIG_BL_SWITCHER */ |
71 | 74 | ||
72 | #endif | 75 | #endif |