projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filter: document ust app ctx limitation
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
filter
/
filter-ast.h
diff --git
a/src/lib/lttng-ctl/filter/filter-ast.h
b/src/lib/lttng-ctl/filter/filter-ast.h
index 4fb60d0b264b7a175bf340ad7cb33ef3f2bd9f4c..c5c73b69e8b9ee18281e33bd1f47ccf05d2dfe95 100644
(file)
--- a/
src/lib/lttng-ctl/filter/filter-ast.h
+++ b/
src/lib/lttng-ctl/filter/filter-ast.h
@@
-39,9
+39,6
@@
// data is a pointer to a 'SParserParam' structure
//#define YYPARSE_PARAM parser_ctx
// data is a pointer to a 'SParserParam' structure
//#define YYPARSE_PARAM parser_ctx
-// the argument for the 'yylex' function
-#define YYLEX_PARAM ((struct filter_parser_ctx *) parser_ctx)->scanner
-
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
typedef void* yyscan_t;
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
typedef void* yyscan_t;
@@
-70,13
+67,13
@@
enum op_type {
AST_OP_MOD,
AST_OP_PLUS,
AST_OP_MINUS,
AST_OP_MOD,
AST_OP_PLUS,
AST_OP_MINUS,
- AST_OP_RSHIFT,
- AST_OP_LSHIFT,
+ AST_OP_
BIT_
RSHIFT,
+ AST_OP_
BIT_
LSHIFT,
AST_OP_AND,
AST_OP_OR,
AST_OP_AND,
AST_OP_OR,
- AST_OP_BI
N
_AND,
- AST_OP_BI
N
_OR,
- AST_OP_BI
N
_XOR,
+ AST_OP_BI
T
_AND,
+ AST_OP_BI
T
_OR,
+ AST_OP_BI
T
_XOR,
AST_OP_EQ,
AST_OP_NE,
AST_OP_EQ,
AST_OP_NE,
@@
-91,13
+88,14
@@
enum unary_op_type {
AST_UNARY_PLUS,
AST_UNARY_MINUS,
AST_UNARY_NOT,
AST_UNARY_PLUS,
AST_UNARY_MINUS,
AST_UNARY_NOT,
- AST_UNARY_BI
N
_NOT,
+ AST_UNARY_BI
T
_NOT,
};
enum ast_link_type {
AST_LINK_UNKNOWN = 0,
AST_LINK_DOT,
AST_LINK_RARROW,
};
enum ast_link_type {
AST_LINK_UNKNOWN = 0,
AST_LINK_DOT,
AST_LINK_RARROW,
+ AST_LINK_BRACKET,
};
struct filter_node {
};
struct filter_node {
@@
-136,9
+134,12
@@
struct filter_node {
*/
struct filter_node *child;
} u;
*/
struct filter_node *child;
} u;
- /*
linked dot/arrow chain
*/
+ /*
prev: backward dot/arrow chain (postfix expression)
*/
struct filter_node *prev;
struct filter_node *prev;
+ /* next: forward dot/arrow chain, generated by a visitor. */
struct filter_node *next;
struct filter_node *next;
+ /* next_bracket: linked bracket chain (prefix expression) */
+ struct filter_node *next_bracket;
} expression;
struct {
enum op_type type;
} expression;
struct {
enum op_type type;
@@
-180,7
+181,6
@@
struct filter_ast *filter_parser_get_ast(struct filter_parser_ctx *parser_ctx)
return parser_ctx->ast;
}
return parser_ctx->ast;
}
-int filter_visitor_set_parent(struct filter_parser_ctx *ctx);
int filter_visitor_print_xml(struct filter_parser_ctx *ctx, FILE *stream,
int indent);
int filter_visitor_ir_generate(struct filter_parser_ctx *ctx);
int filter_visitor_print_xml(struct filter_parser_ctx *ctx, FILE *stream,
int indent);
int filter_visitor_ir_generate(struct filter_parser_ctx *ctx);
@@
-189,5
+189,8
@@
int filter_visitor_bytecode_generate(struct filter_parser_ctx *ctx);
void filter_bytecode_free(struct filter_parser_ctx *ctx);
int filter_visitor_ir_check_binary_op_nesting(struct filter_parser_ctx *ctx);
int filter_visitor_ir_check_binary_comparator(struct filter_parser_ctx *ctx);
void filter_bytecode_free(struct filter_parser_ctx *ctx);
int filter_visitor_ir_check_binary_op_nesting(struct filter_parser_ctx *ctx);
int filter_visitor_ir_check_binary_comparator(struct filter_parser_ctx *ctx);
+int filter_visitor_ir_validate_string(struct filter_parser_ctx *ctx);
+int filter_visitor_ir_normalize_glob_patterns(struct filter_parser_ctx *ctx);
+int filter_visitor_ir_validate_globbing(struct filter_parser_ctx *ctx);
#endif /* _FILTER_AST_H */
#endif /* _FILTER_AST_H */
This page took
0.025561 seconds
and
4
git commands to generate.