This patch adds the hardirq flags trace code for irq macros.

Signed-off-by: Huang Shijie <shijie.hu...@arm.com>
---
 arch/arm64/include/asm/assembler.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/include/asm/assembler.h 
b/arch/arm64/include/asm/assembler.h
index 10b017c..0be1d29 100644
--- a/arch/arm64/include/asm/assembler.h
+++ b/arch/arm64/include/asm/assembler.h
@@ -34,9 +34,15 @@
  */
        .macro  disable_irq
        msr     daifset, #2
+#ifdef CONFIG_TRACE_IRQFLAGS
+       bl      trace_hardirqs_off
+#endif
        .endm
 
        .macro  enable_irq
+#ifdef CONFIG_TRACE_IRQFLAGS
+       bl      trace_hardirqs_on
+#endif
        msr     daifclr, #2
        .endm
 
@@ -75,6 +81,9 @@
  * are self-synchronising.
  */
        .macro  enable_dbg_and_irq
+#ifdef CONFIG_TRACE_IRQFLAGS
+       bl      trace_hardirqs_on
+#endif
        msr     daifclr, #(8 | 2)
        .endm
 
-- 
2.5.5

Reply via email to