Skip to contentSkip to conversation

x86: fix ipipe tracer

PATCH Applied Sebastian Smolorz 2 participants 2 messages Apr 5, 2011 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix ipipe tracer

The ipipe tracer was broken when CONFIG_IPIPE_TRACE_IRQSOFF was enabled. The reason was that in local_irq_restore_hw(flags) native irqs were not enabled again.

---
 arch/x86/include/asm/irqflags.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/arch/x86/include/asm/irqflags.h
index ddfd8cc..6e316c0 100644

arch/x86/include/asm/irqflags.h +1 -1
@@ -283,7 +283,7 @@ static inline int irqs_disabled_hw(void)
 #define local_irq_restore_hw(flags) do {		\
 		if ((flags) & X86_EFLAGS_IF)		\
 			ipipe_trace_end(0x80000001);	\
-		native_irq_disable();			\
+		native_restore_fl(flags);		\
 	} while (0)
 
 #else /* !CONFIG_IPIPE_TRACE_IRQSOFF */
Signature · 1 line
1.5.2.4
#1 lore raw
Quoted 15 lines · Sebastian Smolorz

The ipipe tracer was broken when CONFIG_IPIPE_TRACE_IRQSOFF was enabled. The reason was that in local_irq_restore_hw(flags) native irqs were not enabled again.

---
 arch/x86/include/asm/irqflags.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/include/asm/irqflags.h +0 -0
index ddfd8cc..6e316c0 100644

arch/x86/include/asm/irqflags.h static inline int irqs_disabled_hw(void) · line 289

Quoted 8 lines
arch/x86/include/asm/irqflags.h +1 -1
@@ -283,7 +283,7 @@ static inline int irqs_disabled_hw(void)
 #define local_irq_restore_hw(flags) do {		\
 		if ((flags) & X86_EFLAGS_IF)		\
 			ipipe_trace_end(0x80000001);	\
-		native_irq_disable();			\
+		native_restore_fl(flags);		\
 	} while (0)
 
 #else /* !CONFIG_IPIPE_TRACE_IRQSOFF */

Queued, thanks.

Signature · 1 line
Philippe.