diff options
author | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | 2011-03-16 19:05:31 -0400 |
---|---|---|
committer | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2011-03-16 19:05:31 -0400 |
commit | 63ceaa5a0194406c04e01f1ad0a14e748fef7da4 (patch) | |
tree | 43c2ef4b520b6f9cf7cc286d4486eb29d62a112f /arch/x86/kernel | |
parent | 6b5e84f4cdffd8eb44cc400e1f6243cdc6662fd5 (diff) |
lttng-instrumentation-idle-x86_32
lttng instrumentation idle x86_32
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/process_32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c index f580a4332f8..ac50fbfed11 100644 --- a/arch/x86/kernel/process_32.c +++ b/arch/x86/kernel/process_32.c @@ -40,6 +40,7 @@ #include <linux/kdebug.h> #include <linux/notifier.h> #include <linux/idle.h> +#include <trace/pm.h> #include <asm/pgtable.h> #include <asm/system.h> @@ -61,11 +62,15 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork"); +DEFINE_TRACE(pm_idle_exit); +DEFINE_TRACE(pm_idle_entry); + static DEFINE_PER_CPU(unsigned char, is_idle); void enter_idle(void) { percpu_write(is_idle, 1); + trace_pm_idle_entry(); notify_idle(IDLE_START); } @@ -74,6 +79,7 @@ static void __exit_idle(void) if (x86_test_and_clear_bit_percpu(0, is_idle) == 0) return; notify_idle(IDLE_END); + trace_pm_idle_exit(); } /* Called from interrupts to signify idle end */ |