瀏覽代碼

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>
Steven Rostedt 14 年之前
父節點
當前提交
4a3d27e98a
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 0 1
      include/linux/ftrace_event.h
  2. 2 0
      kernel/trace/trace.h

+ 0 - 1
include/linux/ftrace_event.h

@@ -208,7 +208,6 @@ struct ftrace_event_call {
 
 
 #define PERF_MAX_TRACE_SIZE	2048
 #define PERF_MAX_TRACE_SIZE	2048
 
 
-#define MAX_FILTER_PRED		32
 #define MAX_FILTER_STR_VAL	256	/* Should handle KSYM_SYMBOL_LEN */
 #define MAX_FILTER_STR_VAL	256	/* Should handle KSYM_SYMBOL_LEN */
 
 
 extern void destroy_preds(struct ftrace_event_call *call);
 extern void destroy_preds(struct ftrace_event_call *call);

+ 2 - 0
kernel/trace/trace.h

@@ -680,6 +680,8 @@ struct event_subsystem {
 #define FILTER_PRED_IS_RIGHT	(1 << 15)
 #define FILTER_PRED_IS_RIGHT	(1 << 15)
 #define FILTER_PRED_FOLD	(1 << 15)
 #define FILTER_PRED_FOLD	(1 << 15)
 
 
+#define MAX_FILTER_PRED		32
+
 struct filter_pred;
 struct filter_pred;
 struct regex;
 struct regex;