aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/trace.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2009-10-26 14:51:09 -0400
committerPaul Mackerras <paulus@samba.org>2009-10-28 01:13:04 -0400
commit6f26353ca29e96475208bce673efb6a2c58b73f2 (patch)
treea564c9c71407a83f81d42e15bbe48f647ec72285 /arch/powerpc/include/asm/trace.h
parentc8cd093a6e9f96ea6b871576fd4e46d7c818bb89 (diff)
powerpc: tracing: Give hypervisor call tracepoints access to arguments
While most users of the hcall tracepoints will only want the opcode and return code, some will want all the arguments. To avoid the complexity of using varargs we pass a pointer to the register save area, which contains all the arguments. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/include/asm/trace.h')
-rw-r--r--arch/powerpc/include/asm/trace.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/trace.h b/arch/powerpc/include/asm/trace.h
index 9b01c0e43b55..cbe2297d68b6 100644
--- a/arch/powerpc/include/asm/trace.h
+++ b/arch/powerpc/include/asm/trace.h
@@ -82,9 +82,9 @@ extern void hcall_tracepoint_unregfunc(void);
82 82
83TRACE_EVENT_FN(hcall_entry, 83TRACE_EVENT_FN(hcall_entry,
84 84
85 TP_PROTO(unsigned long opcode), 85 TP_PROTO(unsigned long opcode, unsigned long *args),
86 86
87 TP_ARGS(opcode), 87 TP_ARGS(opcode, args),
88 88
89 TP_STRUCT__entry( 89 TP_STRUCT__entry(
90 __field(unsigned long, opcode) 90 __field(unsigned long, opcode)
@@ -101,9 +101,10 @@ TRACE_EVENT_FN(hcall_entry,
101 101
102TRACE_EVENT_FN(hcall_exit, 102TRACE_EVENT_FN(hcall_exit,
103 103
104 TP_PROTO(unsigned long opcode, unsigned long retval), 104 TP_PROTO(unsigned long opcode, unsigned long retval,
105 unsigned long *retbuf),
105 106
106 TP_ARGS(opcode, retval), 107 TP_ARGS(opcode, retval, retbuf),
107 108
108 TP_STRUCT__entry( 109 TP_STRUCT__entry(
109 __field(unsigned long, opcode) 110 __field(unsigned long, opcode)