From 20f0734f66052c35753ff7725c94c77ee0b2fef8 Mon Sep 17 00:00:00 2001 From: Jason Baron Date: Mon, 10 Aug 2009 16:52:44 -0400 Subject: [PATCH] --- yaml --- r: 158427 b: refs/heads/master c: 69fd4f0eb2ececbf8ade55e31a933e174965745e h: refs/heads/master i: 158425: 65ab91230ac78568dcf259b963115fedee2c77cd 158423: e1355edfb6efb5c6855ec3c6e7b694f92e0f3a4b v: v3 --- [refs] | 2 +- trunk/include/linux/ftrace_event.h | 5 +++-- trunk/include/trace/ftrace.h | 4 ++-- trunk/kernel/trace/trace_events.c | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 69de31aaf71e..d6744a667674 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f744bd576a827c5b02e756b81fc2578edf8179b8 +refs/heads/master: 69fd4f0eb2ececbf8ade55e31a933e174965745e diff --git a/trunk/include/linux/ftrace_event.h b/trunk/include/linux/ftrace_event.h index ac8c6f8cf242..8544f121d9f1 100644 --- a/trunk/include/linux/ftrace_event.h +++ b/trunk/include/linux/ftrace_event.h @@ -112,8 +112,8 @@ struct ftrace_event_call { struct dentry *dir; struct trace_event *event; int enabled; - int (*regfunc)(void); - void (*unregfunc)(void); + int (*regfunc)(void *); + void (*unregfunc)(void *); int id; int (*raw_init)(void); int (*show_format)(struct trace_seq *s); @@ -122,6 +122,7 @@ struct ftrace_event_call { int filter_active; struct event_filter *filter; void *mod; + void *data; atomic_t profile_count; int (*profile_enable)(struct ftrace_event_call *); diff --git a/trunk/include/trace/ftrace.h b/trunk/include/trace/ftrace.h index 25d3b02a06f8..46d81b5e8610 100644 --- a/trunk/include/trace/ftrace.h +++ b/trunk/include/trace/ftrace.h @@ -568,7 +568,7 @@ static void ftrace_raw_event_##call(proto) \ trace_nowake_buffer_unlock_commit(event, irq_flags, pc); \ } \ \ -static int ftrace_raw_reg_event_##call(void) \ +static int ftrace_raw_reg_event_##call(void *ptr) \ { \ int ret; \ \ @@ -579,7 +579,7 @@ static int ftrace_raw_reg_event_##call(void) \ return ret; \ } \ \ -static void ftrace_raw_unreg_event_##call(void) \ +static void ftrace_raw_unreg_event_##call(void *ptr) \ { \ unregister_trace_##call(ftrace_raw_event_##call); \ } \ diff --git a/trunk/kernel/trace/trace_events.c b/trunk/kernel/trace/trace_events.c index f95f8470dd38..1d289e2d6693 100644 --- a/trunk/kernel/trace/trace_events.c +++ b/trunk/kernel/trace/trace_events.c @@ -86,14 +86,14 @@ static void ftrace_event_enable_disable(struct ftrace_event_call *call, if (call->enabled) { call->enabled = 0; tracing_stop_cmdline_record(); - call->unregfunc(); + call->unregfunc(call->data); } break; case 1: if (!call->enabled) { call->enabled = 1; tracing_start_cmdline_record(); - call->regfunc(); + call->regfunc(call->data); } break; }