tracing: fix for tracepoint API change
Commit 38516ab59f
("tracing: Let
tracepoints have data passed to tracepoint callbacks") requires this
fixup to the powerpc code.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
043f275d78
commit
969ea5c5ad
@ -102,7 +102,7 @@ static const struct file_operations hcall_inst_seq_fops = {
|
|||||||
#define CPU_NAME_BUF_SIZE 32
|
#define CPU_NAME_BUF_SIZE 32
|
||||||
|
|
||||||
|
|
||||||
static void probe_hcall_entry(unsigned long opcode, unsigned long *args)
|
static void probe_hcall_entry(void *ignored, unsigned long opcode, unsigned long *args)
|
||||||
{
|
{
|
||||||
struct hcall_stats *h;
|
struct hcall_stats *h;
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ static void probe_hcall_entry(unsigned long opcode, unsigned long *args)
|
|||||||
h->purr_start = mfspr(SPRN_PURR);
|
h->purr_start = mfspr(SPRN_PURR);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void probe_hcall_exit(unsigned long opcode, unsigned long retval,
|
static void probe_hcall_exit(void *ignored, unsigned long opcode, unsigned long retval,
|
||||||
unsigned long *retbuf)
|
unsigned long *retbuf)
|
||||||
{
|
{
|
||||||
struct hcall_stats *h;
|
struct hcall_stats *h;
|
||||||
@ -140,11 +140,11 @@ static int __init hcall_inst_init(void)
|
|||||||
if (!firmware_has_feature(FW_FEATURE_LPAR))
|
if (!firmware_has_feature(FW_FEATURE_LPAR))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (register_trace_hcall_entry(probe_hcall_entry))
|
if (register_trace_hcall_entry(probe_hcall_entry, NULL))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (register_trace_hcall_exit(probe_hcall_exit)) {
|
if (register_trace_hcall_exit(probe_hcall_exit, NULL)) {
|
||||||
unregister_trace_hcall_entry(probe_hcall_entry);
|
unregister_trace_hcall_entry(probe_hcall_entry, NULL);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user