summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-06 06:27:40 +0200
committerIngo Molnar <mingo@elte.hu>2009-09-06 06:27:40 +0200
commitd28daf923ac5e4a0d7cecebae56f3e339189366b (patch)
tree8c8dff978e186bcd91ad60caa484480d3ed4ac11 /kernel
parented011b22ce567eabefa9ea571d3721c10ecd0553 (diff)
parent4a88d44ab17da5f8a238050d1b43dfd2e204bc2f (diff)
downloadop-kernel-dev-d28daf923ac5e4a0d7cecebae56f3e339189366b.zip
op-kernel-dev-d28daf923ac5e4a0d7cecebae56f3e339189366b.tar.gz
Merge branch 'tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into tracing/core
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_events_filter.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c
index c6b2edf..93660fb 100644
--- a/kernel/trace/trace_events_filter.c
+++ b/kernel/trace/trace_events_filter.c
@@ -409,6 +409,9 @@ static int init_preds(struct ftrace_event_call *call)
struct filter_pred *pred;
int i;
+ if (call->filter)
+ return 0;
+
filter = call->filter = kzalloc(sizeof(*filter), GFP_KERNEL);
if (!call->filter)
return -ENOMEM;
@@ -447,11 +450,9 @@ static int init_subsystem_preds(struct event_subsystem *system)
if (strcmp(call->system, system->name) != 0)
continue;
- if (!call->filter) {
- err = init_preds(call);
- if (err)
- return err;
- }
+ err = init_preds(call);
+ if (err)
+ return err;
}
return 0;
OpenPOWER on IntegriCloud