aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2011-08-11 10:25:47 -0400
committerSteven Rostedt <rostedt@goodmis.org>2011-08-19 14:35:52 -0400
commit61aaef55300088e12d7f853adeea65d1aa1562db (patch)
tree2f902bf96330b9727ec3d82b9ff92b83cb79636c /kernel/trace/trace.h
parent9d96cd1743547f07a8a6c51a3f7741cfca0a0bee (diff)
tracing/filter: Remove field_name from filter_pred struct
The field_name was used just for finding event's fields. This way we don't need to care about field_name allocation/free. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/1313072754-4620-4-git-send-email-jolsa@redhat.com Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 616846bcfee5..2eb3cf6d37bc 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -761,16 +761,7 @@ struct filter_pred {
761 filter_pred_fn_t fn; 761 filter_pred_fn_t fn;
762 u64 val; 762 u64 val;
763 struct regex regex; 763 struct regex regex;
764 /* 764 unsigned short *ops;
765 * Leaf nodes use field_name, ops is used by AND and OR
766 * nodes. The field_name is always freed when freeing a pred.
767 * We can overload field_name for ops and have it freed
768 * as well.
769 */
770 union {
771 char *field_name;
772 unsigned short *ops;
773 };
774 int offset; 765 int offset;
775 int not; 766 int not;
776 int op; 767 int op;