Skip to content

Commit 16bb8eb

Browse files
Steven Rostedtrostedt
authored andcommitted
tracing: allow filter predicates to handle ksym symbols
This patch increases the max string used by predicates to handle KSYM_SYMBOL_LEN. Also moves an include to look nicer. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 95b6960 commit 16bb8eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/ftrace_event.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef _LINUX_FTRACE_EVENT_H
22
#define _LINUX_FTRACE_EVENT_H
33

4-
#include <linux/trace_seq.h>
54
#include <linux/ring_buffer.h>
5+
#include <linux/trace_seq.h>
66
#include <linux/percpu.h>
77

88
struct trace_array;
@@ -135,7 +135,7 @@ struct ftrace_event_call {
135135
};
136136

137137
#define MAX_FILTER_PRED 32
138-
#define MAX_FILTER_STR_VAL 128
138+
#define MAX_FILTER_STR_VAL 256 /* Should handle KSYM_SYMBOL_LEN */
139139

140140
extern void destroy_preds(struct ftrace_event_call *call);
141141
extern int filter_match_preds(struct ftrace_event_call *call, void *rec);

0 commit comments

Comments
 (0)