2 #define TRACE_SYSTEM powerpc
4 #if !defined(_TRACE_POWERPC_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_POWERPC_H
7 #include <linux/tracepoint.h>
11 TRACE_EVENT(irq_entry
,
13 TP_PROTO(struct pt_regs
*regs
),
18 __field(struct pt_regs
*, regs
)
25 TP_printk("pt_regs=%p", __entry
->regs
)
30 TP_PROTO(struct pt_regs
*regs
),
35 __field(struct pt_regs
*, regs
)
42 TP_printk("pt_regs=%p", __entry
->regs
)
45 TRACE_EVENT(timer_interrupt_entry
,
47 TP_PROTO(struct pt_regs
*regs
),
52 __field(struct pt_regs
*, regs
)
59 TP_printk("pt_regs=%p", __entry
->regs
)
62 TRACE_EVENT(timer_interrupt_exit
,
64 TP_PROTO(struct pt_regs
*regs
),
69 __field(struct pt_regs
*, regs
)
76 TP_printk("pt_regs=%p", __entry
->regs
)
79 #ifdef CONFIG_PPC_PSERIES
80 extern void hcall_tracepoint_regfunc(void);
81 extern void hcall_tracepoint_unregfunc(void);
83 TRACE_EVENT_FN(hcall_entry
,
85 TP_PROTO(unsigned long opcode
, unsigned long *args
),
87 TP_ARGS(opcode
, args
),
90 __field(unsigned long, opcode
)
94 __entry
->opcode
= opcode
;
97 TP_printk("opcode=%lu", __entry
->opcode
),
99 hcall_tracepoint_regfunc
, hcall_tracepoint_unregfunc
102 TRACE_EVENT_FN(hcall_exit
,
104 TP_PROTO(unsigned long opcode
, unsigned long retval
,
105 unsigned long *retbuf
),
107 TP_ARGS(opcode
, retval
, retbuf
),
110 __field(unsigned long, opcode
)
111 __field(unsigned long, retval
)
115 __entry
->opcode
= opcode
;
116 __entry
->retval
= retval
;
119 TP_printk("opcode=%lu retval=%lu", __entry
->opcode
, __entry
->retval
),
121 hcall_tracepoint_regfunc
, hcall_tracepoint_unregfunc
125 #endif /* _TRACE_POWERPC_H */
127 #undef TRACE_INCLUDE_PATH
128 #undef TRACE_INCLUDE_FILE
130 #define TRACE_INCLUDE_PATH asm
131 #define TRACE_INCLUDE_FILE trace
133 #include <trace/define_trace.h>