aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-01-27 23:21:34 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-02-07 20:56:20 -0500
commitbf93f9ed3a2cb89eb7e58851139d3be375b98027 (patch)
tree119ff46680e43ec44134cf643da04282061b2817 /kernel/trace
parent4a3d27e98a7f2682e96d6f863752e0424b00d691 (diff)
tracing/filter: Increase the max preds to 2^14
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>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index fbff872f8db1..856e73cc1d3f 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -680,7 +680,14 @@ struct event_subsystem {
680#define FILTER_PRED_IS_RIGHT (1 << 15) 680#define FILTER_PRED_IS_RIGHT (1 << 15)
681#define FILTER_PRED_FOLD (1 << 15) 681#define FILTER_PRED_FOLD (1 << 15)
682 682
683#define MAX_FILTER_PRED 32 683/*
684 * The max preds is the size of unsigned short with
685 * two flags at the MSBs. One bit is used for both the IS_RIGHT
686 * and FOLD flags. The other is reserved.
687 *
688 * 2^14 preds is way more than enough.
689 */
690#define MAX_FILTER_PRED 16384
684 691
685struct filter_pred; 692struct filter_pred;
686struct regex; 693struct regex;