#include "lib/lttng-ust/events.h"
#include "lttng-bytecode.h"
-#include "string-utils.h"
+#include "common/strutils.h"
/*
dbg_printf("op load field s16\n");
tmp = *(int16_t *) stack_top->u.ptr.ptr;
if (stack_top->u.ptr.rev_bo)
- tmp = bswap_16(tmp);
+ tmp = lttng_ust_bswap_16(tmp);
stack_top->u.v = tmp;
stack_top->type = REG_S64;
break;
dbg_printf("op load field s32\n");
tmp = *(int32_t *) stack_top->u.ptr.ptr;
if (stack_top->u.ptr.rev_bo)
- tmp = bswap_32(tmp);
+ tmp = lttng_ust_bswap_32(tmp);
stack_top->u.v = tmp;
stack_top->type = REG_S64;
break;
dbg_printf("op load field s64\n");
tmp = *(int64_t *) stack_top->u.ptr.ptr;
if (stack_top->u.ptr.rev_bo)
- tmp = bswap_64(tmp);
+ tmp = lttng_ust_bswap_64(tmp);
stack_top->u.v = tmp;
stack_top->type = REG_S64;
break;
dbg_printf("op load field signed enumeration\n");
tmp = *(int64_t *) stack_top->u.ptr.ptr;
if (stack_top->u.ptr.rev_bo)
- tmp = bswap_64(tmp);
+ tmp = lttng_ust_bswap_64(tmp);
stack_top->u.v = tmp;
stack_top->type = REG_S64;
break;
dbg_printf("op load field u16\n");
tmp = *(uint16_t *) stack_top->u.ptr.ptr;
if (stack_top->u.ptr.rev_bo)
- tmp = bswap_16(tmp);
+ tmp = lttng_ust_bswap_16(tmp);
stack_top->u.v = tmp;
stack_top->type = REG_U64;
break;
dbg_printf("op load field u32\n");
tmp = *(uint32_t *) stack_top->u.ptr.ptr;
if (stack_top->u.ptr.rev_bo)
- tmp = bswap_32(tmp);
+ tmp = lttng_ust_bswap_32(tmp);
stack_top->u.v = tmp;
stack_top->type = REG_U64;
break;
dbg_printf("op load field u64\n");
tmp = *(uint64_t *) stack_top->u.ptr.ptr;
if (stack_top->u.ptr.rev_bo)
- tmp = bswap_64(tmp);
+ tmp = lttng_ust_bswap_64(tmp);
stack_top->u.v = tmp;
stack_top->type = REG_U64;
break;
dbg_printf("op load field unsigned enumeration\n");
tmp = *(uint64_t *) stack_top->u.ptr.ptr;
if (stack_top->u.ptr.rev_bo)
- tmp = bswap_64(tmp);
+ tmp = lttng_ust_bswap_64(tmp);
stack_top->u.v = tmp;
stack_top->type = REG_U64;
break;
/*
* Return LTTNG_UST_EVENT_FILTER_ACCEPT or LTTNG_UST_EVENT_FILTER_REJECT.
*/
-int lttng_ust_interpret_event_filter(struct lttng_ust_event_common *event,
+int lttng_ust_interpret_event_filter(const struct lttng_ust_event_common *event,
const char *interpreter_stack_data,
void *event_filter_ctx __attribute__((unused)))
{