summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@ozlabs.org>2018-10-04 08:23:37 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2019-05-01 08:45:05 +0200
commit5b2a15296210d3b70e06d0f09a8e701ff74ccbe8 (patch)
treef52b9fc358a80514fe1d87416c3c8cd1b77df088 /arch/powerpc/include
parentocxl: remove set but not used variables 'tid' and 'lpid' (diff)
downloadlinux-5b2a15296210d3b70e06d0f09a8e701ff74ccbe8.tar.xz
linux-5b2a15296210d3b70e06d0f09a8e701ff74ccbe8.zip
powerpc: Add doorbell tracepoints
When analysing sources of OS jitter, I noticed that doorbells cannot be traced. Signed-off-by: Anton Blanchard <anton@ozlabs.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/trace.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/trace.h b/arch/powerpc/include/asm/trace.h
index 58ef8c43a89d..08cd60cd70b7 100644
--- a/arch/powerpc/include/asm/trace.h
+++ b/arch/powerpc/include/asm/trace.h
@@ -54,6 +54,22 @@ DEFINE_EVENT(ppc64_interrupt_class, timer_interrupt_exit,
TP_ARGS(regs)
);
+#ifdef CONFIG_PPC_DOORBELL
+DEFINE_EVENT(ppc64_interrupt_class, doorbell_entry,
+
+ TP_PROTO(struct pt_regs *regs),
+
+ TP_ARGS(regs)
+);
+
+DEFINE_EVENT(ppc64_interrupt_class, doorbell_exit,
+
+ TP_PROTO(struct pt_regs *regs),
+
+ TP_ARGS(regs)
+);
+#endif
+
#ifdef CONFIG_PPC_PSERIES
extern int hcall_tracepoint_regfunc(void);
extern void hcall_tracepoint_unregfunc(void);