Re: [RFC patch 02/21] LTTng Kernel Trace Thread Flag ARM fix syscall exit

Mathieu Desnoyers
2009-03-15T19:39:49Z

(sorry, forgot to pick this one from my tree in the original post)

Make sure we re-test the kernel trace thread flag at syscall exit even if we
were not tracing at syscall entry. This fixes syscall exit tracing early in the
trace.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
---
arch/arm/kernel/entry-common.S | 2 ++
1 file changed, 2 insertions(+)

Index: linux-omap-2.6/arch/arm/kernel/entry-common.S
===================================================================
--- linux-omap-2.6.orig/arch/arm/kernel/entry-common.S 2009-02-21 16:31:10.000000000 +0000
+++ linux-omap-2.6/arch/arm/kernel/entry-common.S 2009-02-21 16:32:18.000000000 +0000
@@ -43,6 +43,8 @@
* Ok, we need to do extra processing, enter the slow path.
*/
fast_work_pending:
+ tst r1, #_TIF_KERNEL_TRACE @ flag can be set asynchronously
+ bne __sys_trace_return
str r0, [sp, #S_R0+S_OFF]! @ returned r0
work_pending:
tst r1, #_TIF_NEED_RESCHED