* [PATCH] ARM: Stop irqsoff trace on return to user
@ 2010-11-15 22:53 Todd Poynor
0 siblings, 0 replies; 3+ messages in thread
From: Todd Poynor @ 2010-11-15 22:53 UTC (permalink / raw)
To: linux-arm-kernel
If the irqsoff tracer is in use, stop tracing the interrupt disable
interval when returning to userspace. Tracing userspace execution
time as interrupts disabled time is not helpful for kernel
performance analysis purposes. Only do so if the irqsoff tracer
is enabled, to avoid overhead purely for lockdep, which doesn't
care.
Signed-off-by: Todd Poynor <toddpoynor@google.com>
---
arch/arm/kernel/entry-common.S | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S
index 8bfa987..80bf8cd 100644
--- a/arch/arm/kernel/entry-common.S
+++ b/arch/arm/kernel/entry-common.S
@@ -29,6 +29,9 @@ ret_fast_syscall:
ldr r1, [tsk, #TI_FLAGS]
tst r1, #_TIF_WORK_MASK
bne fast_work_pending
+#if defined(CONFIG_IRQSOFF_TRACER)
+ asm_trace_hardirqs_on
+#endif
/* perform architecture specific actions before user return */
arch_ret_to_user r1, lr
@@ -65,6 +68,9 @@ ret_slow_syscall:
tst r1, #_TIF_WORK_MASK
bne work_pending
no_work_pending:
+#if defined(CONFIG_IRQSOFF_TRACER)
+ asm_trace_hardirqs_on
+#endif
/* perform architecture specific actions before user return */
arch_ret_to_user r1, lr
--
1.7.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: Stop irqsoff trace on return to user
@ 2010-12-04 3:41 Todd Poynor
2010-12-22 23:37 ` Russell King - ARM Linux
0 siblings, 1 reply; 3+ messages in thread
From: Todd Poynor @ 2010-12-04 3:41 UTC (permalink / raw)
To: linux-arm-kernel
If the irqsoff tracer is in use, stop tracing the interrupt disable
interval when returning to userspace. Tracing userspace execution
time as interrupts disabled time is not useful for kernel
performance analysis purposes, and crowds out more helpful results
with long userspace execution times. Some other architectures do
something similar.
Only do so if the irqsoff tracer is enabled, to avoid overhead for
lockdep, which doesn't care about userspace execution time with
interrupts disabled.
Signed-off-by: Todd Poynor <toddpoynor@google.com>
---
arch/arm/kernel/entry-common.S | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S
index 8bfa987..80bf8cd 100644
--- a/arch/arm/kernel/entry-common.S
+++ b/arch/arm/kernel/entry-common.S
@@ -29,6 +29,9 @@ ret_fast_syscall:
ldr r1, [tsk, #TI_FLAGS]
tst r1, #_TIF_WORK_MASK
bne fast_work_pending
+#if defined(CONFIG_IRQSOFF_TRACER)
+ asm_trace_hardirqs_on
+#endif
/* perform architecture specific actions before user return */
arch_ret_to_user r1, lr
@@ -65,6 +68,9 @@ ret_slow_syscall:
tst r1, #_TIF_WORK_MASK
bne work_pending
no_work_pending:
+#if defined(CONFIG_IRQSOFF_TRACER)
+ asm_trace_hardirqs_on
+#endif
/* perform architecture specific actions before user return */
arch_ret_to_user r1, lr
--
1.7.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: Stop irqsoff trace on return to user
2010-12-04 3:41 [PATCH] ARM: Stop irqsoff trace on return to user Todd Poynor
@ 2010-12-22 23:37 ` Russell King - ARM Linux
0 siblings, 0 replies; 3+ messages in thread
From: Russell King - ARM Linux @ 2010-12-22 23:37 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Dec 03, 2010 at 07:41:47PM -0800, Todd Poynor wrote:
> If the irqsoff tracer is in use, stop tracing the interrupt disable
> interval when returning to userspace. Tracing userspace execution
> time as interrupts disabled time is not useful for kernel
> performance analysis purposes, and crowds out more helpful results
> with long userspace execution times. Some other architectures do
> something similar.
>
> Only do so if the irqsoff tracer is enabled, to avoid overhead for
> lockdep, which doesn't care about userspace execution time with
> interrupts disabled.
Ok, can you send this to the patch system please?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-22 23:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-04 3:41 [PATCH] ARM: Stop irqsoff trace on return to user Todd Poynor
2010-12-22 23:37 ` Russell King - ARM Linux
-- strict thread matches above, loose matches on Subject: below --
2010-11-15 22:53 Todd Poynor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).