projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: have interpreter functions return _DISCARD instead of 0
[lttng-ust.git]
/
liblttng-ust
/
lttng-filter-interpreter.c
diff --git
a/liblttng-ust/lttng-filter-interpreter.c
b/liblttng-ust/lttng-filter-interpreter.c
index 6f13aa04e47f9d43973df802f2262687b2257b10..5255bb73238ea7bb6def6dfd136229028ab326e0 100644
(file)
--- a/
liblttng-ust/lttng-filter-interpreter.c
+++ b/
liblttng-ust/lttng-filter-interpreter.c
@@
-164,7
+164,7
@@
int stack_strcmp(struct estack *stack, int top, const char *cmp_type)
uint64_t lttng_filter_false(void *filter_data,
const char *filter_stack_data)
{
uint64_t lttng_filter_false(void *filter_data,
const char *filter_stack_data)
{
- return
0
;
+ return
LTTNG_FILTER_DISCARD
;
}
#ifdef INTERPRETER_USE_SWITCH
}
#ifdef INTERPRETER_USE_SWITCH
@@
-793,7
+793,7
@@
uint64_t lttng_filter_interpret_bytecode(void *filter_data,
goto end;
OP(FILTER_OP_RETURN):
goto end;
OP(FILTER_OP_RETURN):
- /* LTTNG_FILTER_DISCARD
or LTTNG_FILTER_RECORD_FLAG */
+ /* LTTNG_FILTER_DISCARD or LTTNG_FILTER_RECORD_FLAG */
/* Handle dynamic typing. */
switch (estack_ax_t) {
case REG_S64:
/* Handle dynamic typing. */
switch (estack_ax_t) {
case REG_S64:
@@
-810,7
+810,7
@@
uint64_t lttng_filter_interpret_bytecode(void *filter_data,
goto end;
OP(FILTER_OP_RETURN_S64):
goto end;
OP(FILTER_OP_RETURN_S64):
- /* LTTNG_FILTER_DISCARD
or LTTNG_FILTER_RECORD_FLAG */
+ /* LTTNG_FILTER_DISCARD or LTTNG_FILTER_RECORD_FLAG */
retval = !!estack_ax_v;
ret = 0;
goto end;
retval = !!estack_ax_v;
ret = 0;
goto end;
@@
-2367,9
+2367,9
@@
uint64_t lttng_filter_interpret_bytecode(void *filter_data,
END_OP
end:
END_OP
end:
- /*
return 0 (discard) on error
*/
+ /*
Return _DISCARD on error.
*/
if (ret)
if (ret)
- return
0
;
+ return
LTTNG_FILTER_DISCARD
;
return retval;
}
return retval;
}
This page took
0.026449 seconds
and
4
git commands to generate.