tracing/filters: return proper error code when writing filter file
authorLi Zefan <lizf@cn.fujitsu.com>
Sat, 11 Apr 2009 07:55:28 +0000 (15:55 +0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 12 Apr 2009 09:59:29 +0000 (11:59 +0200)
commit44e9c8b7adc52079f0535f9de0c2c2477831389b
tree4c021dd16a8329f8543a97310081724015c81fc6
parenta3e0ab050774117d4a6173087c8bf3888662a83f
tracing/filters: return proper error code when writing filter file

- propagate return value of filter_add_pred() to the user

- return -ENOSPC but not -ENOMEM or -EINVAL when the filter array
  is full

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Tom Zanussi <tzanussi@gmail.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <49E04CF0.3010105@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_events.c
kernel/trace/trace_events_filter.c