Skip to content

Commit

Permalink
tracing/filter: Move MAX_FILTER_PRED to local tracing directory
Browse files Browse the repository at this point in the history
The MAX_FILTER_PRED is only needed by the kernel/trace/*.c files.
Move it to kernel/trace/trace.h.

Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Feb 8, 2011
1 parent 43cd414 commit 4a3d27e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/linux/ftrace_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ struct ftrace_event_call {

#define PERF_MAX_TRACE_SIZE 2048

#define MAX_FILTER_PRED 32
#define MAX_FILTER_STR_VAL 256 /* Should handle KSYM_SYMBOL_LEN */

extern void destroy_preds(struct ftrace_event_call *call);
Expand Down
2 changes: 2 additions & 0 deletions kernel/trace/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@ struct event_subsystem {
#define FILTER_PRED_IS_RIGHT (1 << 15)
#define FILTER_PRED_FOLD (1 << 15)

#define MAX_FILTER_PRED 32

struct filter_pred;
struct regex;

Expand Down

0 comments on commit 4a3d27e

Please sign in to comment.