int16_t tmp;
tmp = *(int16_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_16(tmp);
+ tmp = lttng_ust_bswap_16(tmp);
value = tmp;
break;
int32_t tmp;
tmp = *(int32_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_32(tmp);
+ tmp = lttng_ust_bswap_32(tmp);
value = tmp;
break;
int64_t tmp;
tmp = *(int64_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_64(tmp);
+ tmp = lttng_ust_bswap_64(tmp);
value = tmp;
break;
uint16_t tmp;
tmp = *(uint16_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_16(tmp);
+ tmp = lttng_ust_bswap_16(tmp);
value = tmp;
break;
uint32_t tmp;
tmp = *(uint32_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_32(tmp);
+ tmp = lttng_ust_bswap_32(tmp);
value = tmp;
break;
uint64_t tmp;
tmp = *(uint64_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_64(tmp);
+ tmp = lttng_ust_bswap_64(tmp);
value = tmp;
break;
static
void notification_init(struct lttng_event_notifier_notification *notif,
- struct lttng_ust_event_notifier *event_notifier)
+ const struct lttng_ust_event_notifier *event_notifier)
{
struct lttng_msgpack_writer *writer = ¬if->writer;
lttng_msgpack_write_nil(¬if->writer);
}
-static void record_error(struct lttng_ust_event_notifier *event_notifier)
+static void record_error(const struct lttng_ust_event_notifier *event_notifier)
{
struct lttng_event_notifier_group *event_notifier_group =
event_notifier->priv->group;
static
void notification_send(struct lttng_event_notifier_notification *notif,
- struct lttng_ust_event_notifier *event_notifier)
+ const struct lttng_ust_event_notifier *event_notifier)
{
ssize_t ret;
size_t content_len;
}
void lttng_event_notifier_notification_send(
- struct lttng_ust_event_notifier *event_notifier,
+ const struct lttng_ust_event_notifier *event_notifier,
const char *stack_data,
+ struct lttng_ust_probe_ctx *probe_ctx,
struct lttng_ust_notification_ctx *notif_ctx)
{
/*
struct lttng_interpreter_output output;
if (capture_bc_runtime->interpreter_func(capture_bc_runtime,
- stack_data, &output) == LTTNG_UST_BYTECODE_INTERPRETER_OK)
+ stack_data, probe_ctx, &output) == LTTNG_UST_BYTECODE_INTERPRETER_OK)
notification_append_capture(¬if, &output);
else
notification_append_empty_capture(¬if);