* [PATCH] tracing, powerpc: Add data parameter to powerpc-specific tracepoints
@ 2010-05-24 5:27 Paul Mackerras
2010-05-25 3:17 ` Steven Rostedt
0 siblings, 1 reply; 2+ messages in thread
From: Paul Mackerras @ 2010-05-24 5:27 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-kernel
Commit 38516ab5 ("tracing: Let tracepoints have data passed to
tracepoint callbacks") added a void *data parameter to tracing
callbacks and to the {un,}register_trace_* functions, requiring all
tracepoint callback functions to have the extra void * parameter.
This adds the void *data parameter to the tracepoints in the pSeries
hypervisor call code. Without this, hvCall_inst.c fails to compile
with tracing enabled.
Signed-off-by: Paul Mackerras <paulus@samba.org>
---
arch/powerpc/platforms/pseries/hvCall_inst.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/hvCall_inst.c b/arch/powerpc/platforms/pseries/hvCall_inst.c
index 1fefae7..9d03ef5 100644
--- a/arch/powerpc/platforms/pseries/hvCall_inst.c
+++ b/arch/powerpc/platforms/pseries/hvCall_inst.c
@@ -102,7 +102,8 @@ static const struct file_operations hcall_inst_seq_fops = {
#define CPU_NAME_BUF_SIZE 32
-static void probe_hcall_entry(unsigned long opcode, unsigned long *args)
+static void probe_hcall_entry(void *data, unsigned long opcode,
+ unsigned long *args)
{
struct hcall_stats *h;
@@ -114,8 +115,8 @@ static void probe_hcall_entry(unsigned long opcode, unsigned long *args)
h->purr_start = mfspr(SPRN_PURR);
}
-static void probe_hcall_exit(unsigned long opcode, unsigned long retval,
- unsigned long *retbuf)
+static void probe_hcall_exit(void *data, unsigned long opcode,
+ unsigned long retval, unsigned long *retbuf)
{
struct hcall_stats *h;
@@ -140,11 +141,11 @@ static int __init hcall_inst_init(void)
if (!firmware_has_feature(FW_FEATURE_LPAR))
return 0;
- if (register_trace_hcall_entry(probe_hcall_entry))
+ if (register_trace_hcall_entry(probe_hcall_entry, NULL))
return -EINVAL;
- if (register_trace_hcall_exit(probe_hcall_exit)) {
- unregister_trace_hcall_entry(probe_hcall_entry);
+ if (register_trace_hcall_exit(probe_hcall_exit, NULL)) {
+ unregister_trace_hcall_entry(probe_hcall_entry, NULL);
return -EINVAL;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] tracing, powerpc: Add data parameter to powerpc-specific tracepoints
2010-05-24 5:27 [PATCH] tracing, powerpc: Add data parameter to powerpc-specific tracepoints Paul Mackerras
@ 2010-05-25 3:17 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2010-05-25 3:17 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linux-kernel
On Mon, 2010-05-24 at 15:27 +1000, Paul Mackerras wrote:
> Commit 38516ab5 ("tracing: Let tracepoints have data passed to
> tracepoint callbacks") added a void *data parameter to tracing
> callbacks and to the {un,}register_trace_* functions, requiring all
> tracepoint callback functions to have the extra void * parameter.
>
> This adds the void *data parameter to the tracepoints in the pSeries
> hypervisor call code. Without this, hvCall_inst.c fails to compile
> with tracing enabled.
>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Thanks!
-- Steve
> Signed-off-by: Paul Mackerras <paulus@samba.org>
> ---
> arch/powerpc/platforms/pseries/hvCall_inst.c | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/arch/powerpc/platforms/pseries/hvCall_inst.c b/arch/powerpc/platforms/pseries/hvCall_inst.c
> index 1fefae7..9d03ef5 100644
> --- a/arch/powerpc/platforms/pseries/hvCall_inst.c
> +++ b/arch/powerpc/platforms/pseries/hvCall_inst.c
> @@ -102,7 +102,8 @@ static const struct file_operations hcall_inst_seq_fops = {
> #define CPU_NAME_BUF_SIZE 32
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-25 3:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-24 5:27 [PATCH] tracing, powerpc: Add data parameter to powerpc-specific tracepoints Paul Mackerras
2010-05-25 3:17 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox