diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-12-07 22:17:29 -0500 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2009-12-13 12:37:28 -0500 |
commit | e00bf2ec60605eb95687b7a0c3b83c87c48541dc (patch) | |
tree | e0b63423355286bc14cee438b39e9ba681f7327a /kernel/trace/trace_kprobe.c | |
parent | 8d18eaaff5acaa58369be342c86e607643ce10c7 (diff) |
tracing: Change event->profile_count to be int type
Like total_profile_count, struct ftrace_event_call::profile_count
is protected by event_mutex, so it doesn't need to be atomic_t.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <4B1DC549.5010705@cn.fujitsu.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'kernel/trace/trace_kprobe.c')
-rw-r--r-- | kernel/trace/trace_kprobe.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index e3c80e925896..6ed223447a3f 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c | |||
@@ -1426,7 +1426,6 @@ static int register_probe_event(struct trace_probe *tp) | |||
1426 | call->unregfunc = probe_event_disable; | 1426 | call->unregfunc = probe_event_disable; |
1427 | 1427 | ||
1428 | #ifdef CONFIG_EVENT_PROFILE | 1428 | #ifdef CONFIG_EVENT_PROFILE |
1429 | atomic_set(&call->profile_count, -1); | ||
1430 | call->profile_enable = probe_profile_enable; | 1429 | call->profile_enable = probe_profile_enable; |
1431 | call->profile_disable = probe_profile_disable; | 1430 | call->profile_disable = probe_profile_disable; |
1432 | #endif | 1431 | #endif |