/*
* Bytecode interpreter return value masks.
*/
-enum lttng_bytecode_interpreter_ret {
- LTTNG_INTERPRETER_DISCARD = 0,
- LTTNG_INTERPRETER_RECORD_FLAG = (1ULL << 0),
+enum lttng_ust_bytecode_interpreter_ret {
+ LTTNG_UST_BYTECODE_INTERPRETER_DISCARD = 0,
+ LTTNG_UST_BYTECODE_INTERPRETER_RECORD_FLAG = (1ULL << 0),
/* Other bits are kept for future use. */
};
_TP_ARGS_DATA_VAR(_args)); \
tp_list_for_each_entry_rcu(__filter_bc_runtime, &__event->filter_bytecode_runtime_head, node) { \
if (caa_unlikely(__filter_bc_runtime->interpreter_funcs.filter(__filter_bc_runtime, \
- __stackvar.__interpreter_stack_data) & LTTNG_INTERPRETER_RECORD_FLAG)) { \
+ __stackvar.__interpreter_stack_data) & LTTNG_UST_BYTECODE_INTERPRETER_RECORD_FLAG)) { \
__filter_record = 1; \
break; \
} \
struct lttng_interpreter_output output;
if (capture_bc_runtime->interpreter_funcs.capture(capture_bc_runtime,
- stack_data, &output) & LTTNG_INTERPRETER_RECORD_FLAG)
+ stack_data, &output) & LTTNG_UST_BYTECODE_INTERPRETER_RECORD_FLAG)
notification_append_capture(¬if, &output);
else
notification_append_empty_capture(¬if);
uint64_t lttng_bytecode_filter_interpret_false(void *filter_data,
const char *filter_stack_data)
{
- return LTTNG_INTERPRETER_DISCARD;
+ return LTTNG_UST_BYTECODE_INTERPRETER_DISCARD;
}
uint64_t lttng_bytecode_capture_interpret_false(void *capture_data,
const char *capture_stack_data,
struct lttng_interpreter_output *output)
{
- return LTTNG_INTERPRETER_DISCARD;
+ return LTTNG_UST_BYTECODE_INTERPRETER_DISCARD;
}
#ifdef INTERPRETER_USE_SWITCH
return -EINVAL;
}
- return LTTNG_INTERPRETER_RECORD_FLAG;
+ return LTTNG_UST_BYTECODE_INTERPRETER_RECORD_FLAG;
}
/*
goto end;
OP(BYTECODE_OP_RETURN):
- /* LTTNG_INTERPRETER_DISCARD or LTTNG_INTERPRETER_RECORD_FLAG */
+ /* LTTNG_UST_BYTECODE_INTERPRETER_DISCARD or LTTNG_UST_BYTECODE_INTERPRETER_RECORD_FLAG */
/* Handle dynamic typing. */
switch (estack_ax_t) {
case REG_S64:
goto end;
OP(BYTECODE_OP_RETURN_S64):
- /* LTTNG_INTERPRETER_DISCARD or LTTNG_INTERPRETER_RECORD_FLAG */
+ /* LTTNG_UST_BYTECODE_INTERPRETER_DISCARD or LTTNG_UST_BYTECODE_INTERPRETER_RECORD_FLAG */
retval = !!estack_ax_v;
ret = 0;
goto end;
end:
/* Return _DISCARD on error. */
if (ret)
- return LTTNG_INTERPRETER_DISCARD;
+ return LTTNG_UST_BYTECODE_INTERPRETER_DISCARD;
if (output) {
return lttng_bytecode_interpret_format_output(estack_ax(stack, top),