Skip to content

Commit 4a3d27e

Browse files
Steven Rostedtrostedt
authored andcommitted
tracing/filter: Move MAX_FILTER_PRED to local tracing directory
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>
1 parent 43cd414 commit 4a3d27e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/linux/ftrace_event.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ struct ftrace_event_call {
208208

209209
#define PERF_MAX_TRACE_SIZE 2048
210210

211-
#define MAX_FILTER_PRED 32
212211
#define MAX_FILTER_STR_VAL 256 /* Should handle KSYM_SYMBOL_LEN */
213212

214213
extern void destroy_preds(struct ftrace_event_call *call);

kernel/trace/trace.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,8 @@ 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
684+
683685
struct filter_pred;
684686
struct regex;
685687

0 commit comments

Comments
 (0)