4 /* A filter expression consists in nested AND, OR and NOT expressions
5 involving boolean relation (>, >=, =, !=, <, <=) between event fields and
6 specific values. It is compiled into an efficient data structure which
7 is used in functions to check if a given event or tracefile satisfies the
10 The grammar for filters is:
14 expression = "(" expression ")" | "!" expression |
15 expression "&&" expression | expression "||" expression |
18 simpleExpression = fieldPath op value
20 fieldPath = fieldComponent [ "." fieldPath ]
22 fieldComponent = name [ "[" integer "]" ]
24 value = integer | double | string
29 typedef struct _lttv_filter lttv_filter
;
32 /* Compile the filter expression into an efficient data structure */
34 lttv_filter
*lttv_filter_new(char *expression
, lttv_trace
*t
);
37 /* Check if the tracefile or event satisfies the filter. The arguments are
38 declared as void * to allow these functions to be used as hooks. */
40 bool lttv_filter_tracefile(void *filter
, void *tracefile
);
42 bool lttv_filter_event(void *filter
, void *event
);
This page took 0.029575 seconds and 4 git commands to generate.