2009-10-27 01:47:42 +07:00
|
|
|
#undef TRACE_SYSTEM
|
|
|
|
#define TRACE_SYSTEM powerpc
|
|
|
|
|
|
|
|
#if !defined(_TRACE_POWERPC_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
|
|
#define _TRACE_POWERPC_H
|
|
|
|
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
|
|
|
|
struct pt_regs;
|
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
DECLARE_EVENT_CLASS(ppc64_interrupt_class,
|
2009-10-27 01:47:42 +07:00
|
|
|
|
|
|
|
TP_PROTO(struct pt_regs *regs),
|
|
|
|
|
|
|
|
TP_ARGS(regs),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(struct pt_regs *, regs)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->regs = regs;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("pt_regs=%p", __entry->regs)
|
|
|
|
);
|
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
DEFINE_EVENT(ppc64_interrupt_class, irq_entry,
|
2009-10-27 01:47:42 +07:00
|
|
|
|
|
|
|
TP_PROTO(struct pt_regs *regs),
|
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
TP_ARGS(regs)
|
2009-10-27 01:47:42 +07:00
|
|
|
);
|
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
DEFINE_EVENT(ppc64_interrupt_class, irq_exit,
|
2009-10-27 01:49:14 +07:00
|
|
|
|
|
|
|
TP_PROTO(struct pt_regs *regs),
|
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
TP_ARGS(regs)
|
2009-10-27 01:49:14 +07:00
|
|
|
);
|
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
DEFINE_EVENT(ppc64_interrupt_class, timer_interrupt_entry,
|
2009-10-27 01:49:14 +07:00
|
|
|
|
|
|
|
TP_PROTO(struct pt_regs *regs),
|
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
TP_ARGS(regs)
|
|
|
|
);
|
2009-10-27 01:49:14 +07:00
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
DEFINE_EVENT(ppc64_interrupt_class, timer_interrupt_exit,
|
2009-10-27 01:49:14 +07:00
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
TP_PROTO(struct pt_regs *regs),
|
2009-10-27 01:49:14 +07:00
|
|
|
|
2012-05-23 01:47:48 +07:00
|
|
|
TP_ARGS(regs)
|
2009-10-27 01:49:14 +07:00
|
|
|
);
|
|
|
|
|
2009-10-27 01:50:29 +07:00
|
|
|
#ifdef CONFIG_PPC_PSERIES
|
|
|
|
extern void hcall_tracepoint_regfunc(void);
|
|
|
|
extern void hcall_tracepoint_unregfunc(void);
|
|
|
|
|
|
|
|
TRACE_EVENT_FN(hcall_entry,
|
|
|
|
|
2009-10-27 01:51:09 +07:00
|
|
|
TP_PROTO(unsigned long opcode, unsigned long *args),
|
2009-10-27 01:50:29 +07:00
|
|
|
|
2009-10-27 01:51:09 +07:00
|
|
|
TP_ARGS(opcode, args),
|
2009-10-27 01:50:29 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(unsigned long, opcode)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->opcode = opcode;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("opcode=%lu", __entry->opcode),
|
|
|
|
|
|
|
|
hcall_tracepoint_regfunc, hcall_tracepoint_unregfunc
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT_FN(hcall_exit,
|
|
|
|
|
2009-10-27 01:51:09 +07:00
|
|
|
TP_PROTO(unsigned long opcode, unsigned long retval,
|
|
|
|
unsigned long *retbuf),
|
2009-10-27 01:50:29 +07:00
|
|
|
|
2009-10-27 01:51:09 +07:00
|
|
|
TP_ARGS(opcode, retval, retbuf),
|
2009-10-27 01:50:29 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(unsigned long, opcode)
|
|
|
|
__field(unsigned long, retval)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->opcode = opcode;
|
|
|
|
__entry->retval = retval;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("opcode=%lu retval=%lu", __entry->opcode, __entry->retval),
|
|
|
|
|
|
|
|
hcall_tracepoint_regfunc, hcall_tracepoint_unregfunc
|
|
|
|
);
|
|
|
|
#endif
|
|
|
|
|
2014-07-03 14:20:50 +07:00
|
|
|
#ifdef CONFIG_PPC_POWERNV
|
|
|
|
extern void opal_tracepoint_regfunc(void);
|
|
|
|
extern void opal_tracepoint_unregfunc(void);
|
|
|
|
|
|
|
|
TRACE_EVENT_FN(opal_entry,
|
|
|
|
|
|
|
|
TP_PROTO(unsigned long opcode, unsigned long *args),
|
|
|
|
|
|
|
|
TP_ARGS(opcode, args),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(unsigned long, opcode)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->opcode = opcode;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("opcode=%lu", __entry->opcode),
|
|
|
|
|
|
|
|
opal_tracepoint_regfunc, opal_tracepoint_unregfunc
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT_FN(opal_exit,
|
|
|
|
|
|
|
|
TP_PROTO(unsigned long opcode, unsigned long retval),
|
|
|
|
|
|
|
|
TP_ARGS(opcode, retval),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(unsigned long, opcode)
|
|
|
|
__field(unsigned long, retval)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->opcode = opcode;
|
|
|
|
__entry->retval = retval;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("opcode=%lu retval=%lu", __entry->opcode, __entry->retval),
|
|
|
|
|
|
|
|
opal_tracepoint_regfunc, opal_tracepoint_unregfunc
|
|
|
|
);
|
|
|
|
#endif
|
|
|
|
|
2009-10-27 01:47:42 +07:00
|
|
|
#endif /* _TRACE_POWERPC_H */
|
|
|
|
|
|
|
|
#undef TRACE_INCLUDE_PATH
|
|
|
|
#undef TRACE_INCLUDE_FILE
|
|
|
|
|
|
|
|
#define TRACE_INCLUDE_PATH asm
|
|
|
|
#define TRACE_INCLUDE_FILE trace
|
|
|
|
|
|
|
|
#include <trace/define_trace.h>
|