]> git.karo-electronics.de Git - linux-beck.git/commitdiff
tracing/filter: Increase the max preds to 2^14
authorSteven Rostedt <srostedt@redhat.com>
Fri, 28 Jan 2011 04:21:34 +0000 (23:21 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 8 Feb 2011 01:56:20 +0000 (20:56 -0500)
Now that the filter logic does not require to save the pred results
on the stack, we can increase the max number of preds we allow.
As the preds are index by a short value, and we use the MSBs as flags
we can increase the max preds to 2^14 (16384) which should be way
more than enough.

Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.h

index fbff872f8db1a702f58938c850652dd06af43f9c..856e73cc1d3f7010b67eff60b356cf075d1f8c2f 100644 (file)
@@ -680,7 +680,14 @@ struct event_subsystem {
 #define FILTER_PRED_IS_RIGHT   (1 << 15)
 #define FILTER_PRED_FOLD       (1 << 15)
 
-#define MAX_FILTER_PRED                32
+/*
+ * The max preds is the size of unsigned short with
+ * two flags at the MSBs. One bit is used for both the IS_RIGHT
+ * and FOLD flags. The other is reserved.
+ *
+ * 2^14 preds is way more than enough.
+ */
+#define MAX_FILTER_PRED                16384
 
 struct filter_pred;
 struct regex;