1 /* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 Michel Dagenais
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20 consist in AND
, OR
and NOT nested expressions
, forming a tree with
21 simple relations as leaves
. The simple relations test is a field
22 in an event is equal
, not equal
, smaller
, smaller
or equal
, larger
, or
23 larger
or equal to a specified value
. */
25 typedef enum _lttv_expression_op
34 typedef _lttv_simple_expression
35 { lttv_expression_op op
;
38 } lttv_simple_expression
;
40 typedef _lttv_expression_type
42 LTTV_SIMPLE_EXPRESSION
45 typedef struct _lttv_expression
48 bool simple_expression
;
51 lttv_field_relation
*se
;
59 simple expr
[ op expr
]
61 read_simple_expression
62 read_field_path
[ rel value
]
65 read_field_component
[. field path
]
74 path(component
...) -> field