projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng_set_event_filter() was returning bad error code
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index 27d69089fa7faf615626be99cff64ad136f41769..e4560bb7fb927895d5b11fd84db2338001b0507b 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-782,24
+782,24
@@
int lttng_set_event_filter(struct lttng_handle *handle,
strlen(filter_expression), "r");
if (!fmem) {
fprintf(stderr, "Error opening memory as stream\n");
strlen(filter_expression), "r");
if (!fmem) {
fprintf(stderr, "Error opening memory as stream\n");
- return -
E
NOMEM;
+ return -
LTTNG_ERR_FILTER_
NOMEM;
}
ctx = filter_parser_ctx_alloc(fmem);
if (!ctx) {
fprintf(stderr, "Error allocating parser\n");
}
ctx = filter_parser_ctx_alloc(fmem);
if (!ctx) {
fprintf(stderr, "Error allocating parser\n");
- ret = -
E
NOMEM;
+ ret = -
LTTNG_ERR_FILTER_
NOMEM;
goto alloc_error;
}
ret = filter_parser_ctx_append_ast(ctx);
if (ret) {
fprintf(stderr, "Parse error\n");
goto alloc_error;
}
ret = filter_parser_ctx_append_ast(ctx);
if (ret) {
fprintf(stderr, "Parse error\n");
- ret = -
E
INVAL;
+ ret = -
LTTNG_ERR_FILTER_
INVAL;
goto parse_error;
}
ret = filter_visitor_set_parent(ctx);
if (ret) {
fprintf(stderr, "Set parent error\n");
goto parse_error;
}
ret = filter_visitor_set_parent(ctx);
if (ret) {
fprintf(stderr, "Set parent error\n");
- ret = -
E
INVAL;
+ ret = -
LTTNG_ERR_FILTER_
INVAL;
goto parse_error;
}
if (print_xml) {
goto parse_error;
}
if (print_xml) {
@@
-807,7
+807,7
@@
int lttng_set_event_filter(struct lttng_handle *handle,
if (ret) {
fflush(stdout);
fprintf(stderr, "XML print error\n");
if (ret) {
fflush(stdout);
fprintf(stderr, "XML print error\n");
- ret = -
E
INVAL;
+ ret = -
LTTNG_ERR_FILTER_
INVAL;
goto parse_error;
}
}
goto parse_error;
}
}
@@
-817,7
+817,7
@@
int lttng_set_event_filter(struct lttng_handle *handle,
ret = filter_visitor_ir_generate(ctx);
if (ret) {
fprintf(stderr, "Generate IR error\n");
ret = filter_visitor_ir_generate(ctx);
if (ret) {
fprintf(stderr, "Generate IR error\n");
- ret = -
E
INVAL;
+ ret = -
LTTNG_ERR_FILTER_
INVAL;
goto parse_error;
}
dbg_printf("done\n");
goto parse_error;
}
dbg_printf("done\n");
@@
-826,7
+826,7
@@
int lttng_set_event_filter(struct lttng_handle *handle,
fflush(stdout);
ret = filter_visitor_ir_check_binary_op_nesting(ctx);
if (ret) {
fflush(stdout);
ret = filter_visitor_ir_check_binary_op_nesting(ctx);
if (ret) {
- ret = -
E
INVAL;
+ ret = -
LTTNG_ERR_FILTER_
INVAL;
goto parse_error;
}
dbg_printf("done\n");
goto parse_error;
}
dbg_printf("done\n");
@@
-836,7
+836,7
@@
int lttng_set_event_filter(struct lttng_handle *handle,
ret = filter_visitor_bytecode_generate(ctx);
if (ret) {
fprintf(stderr, "Generate bytecode error\n");
ret = filter_visitor_bytecode_generate(ctx);
if (ret) {
fprintf(stderr, "Generate bytecode error\n");
- ret = -
E
INVAL;
+ ret = -
LTTNG_ERR_FILTER_
INVAL;
goto parse_error;
}
dbg_printf("done\n");
goto parse_error;
}
dbg_printf("done\n");
This page took
0.031543 seconds
and
4
git commands to generate.