Staging: hv: hv_mouse: unwind the initialization process a bit
[zen-stable.git] / arch / powerpc / include / asm / trace.h
blobcbe2297d68b6465ceeb204fbd4eeb863cdc7a1b0
1 #undef TRACE_SYSTEM
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>
9 struct pt_regs;
11 TRACE_EVENT(irq_entry,
13 TP_PROTO(struct pt_regs *regs),
15 TP_ARGS(regs),
17 TP_STRUCT__entry(
18 __field(struct pt_regs *, regs)
21 TP_fast_assign(
22 __entry->regs = regs;
25 TP_printk("pt_regs=%p", __entry->regs)
28 TRACE_EVENT(irq_exit,
30 TP_PROTO(struct pt_regs *regs),
32 TP_ARGS(regs),
34 TP_STRUCT__entry(
35 __field(struct pt_regs *, regs)
38 TP_fast_assign(
39 __entry->regs = regs;
42 TP_printk("pt_regs=%p", __entry->regs)
45 TRACE_EVENT(timer_interrupt_entry,
47 TP_PROTO(struct pt_regs *regs),
49 TP_ARGS(regs),
51 TP_STRUCT__entry(
52 __field(struct pt_regs *, regs)
55 TP_fast_assign(
56 __entry->regs = regs;
59 TP_printk("pt_regs=%p", __entry->regs)
62 TRACE_EVENT(timer_interrupt_exit,
64 TP_PROTO(struct pt_regs *regs),
66 TP_ARGS(regs),
68 TP_STRUCT__entry(
69 __field(struct pt_regs *, regs)
72 TP_fast_assign(
73 __entry->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),
89 TP_STRUCT__entry(
90 __field(unsigned long, opcode)
93 TP_fast_assign(
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),
109 TP_STRUCT__entry(
110 __field(unsigned long, opcode)
111 __field(unsigned long, retval)
114 TP_fast_assign(
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
123 #endif
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>