Skip to content

Commit bf93f9e

Browse files
Steven Rostedtrostedt
authored andcommitted
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>
1 parent 4a3d27e commit bf93f9e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

kernel/trace/trace.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,14 @@ struct event_subsystem {
680680
#define FILTER_PRED_IS_RIGHT (1 << 15)
681681
#define FILTER_PRED_FOLD (1 << 15)
682682

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
684691

685692
struct filter_pred;
686693
struct regex;

0 commit comments

Comments
 (0)