projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Use negative value for error code of lttng_ust_ctl_duplicate_ust_object_data
[lttng-ust.git]
/
src
/
lib
/
lttng-ust
/
event-notifier-notification.c
diff --git
a/src/lib/lttng-ust/event-notifier-notification.c
b/src/lib/lttng-ust/event-notifier-notification.c
index 4cfd1b15ceaa087ffda3bb7727e819a1d1cf62d1..d4849421f8d421439d2b1a677fe989e67f9092e5 100644
(file)
--- a/
src/lib/lttng-ust/event-notifier-notification.c
+++ b/
src/lib/lttng-ust/event-notifier-notification.c
@@
-79,7
+79,7
@@
int64_t capture_sequence_element_signed(uint8_t *ptr,
int16_t tmp;
tmp = *(int16_t *) ptr;
if (byte_order_reversed)
int16_t tmp;
tmp = *(int16_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_16(tmp);
+ tmp =
lttng_ust_
bswap_16(tmp);
value = tmp;
break;
value = tmp;
break;
@@
-89,7
+89,7
@@
int64_t capture_sequence_element_signed(uint8_t *ptr,
int32_t tmp;
tmp = *(int32_t *) ptr;
if (byte_order_reversed)
int32_t tmp;
tmp = *(int32_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_32(tmp);
+ tmp =
lttng_ust_
bswap_32(tmp);
value = tmp;
break;
value = tmp;
break;
@@
-99,7
+99,7
@@
int64_t capture_sequence_element_signed(uint8_t *ptr,
int64_t tmp;
tmp = *(int64_t *) ptr;
if (byte_order_reversed)
int64_t tmp;
tmp = *(int64_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_64(tmp);
+ tmp =
lttng_ust_
bswap_64(tmp);
value = tmp;
break;
value = tmp;
break;
@@
-128,7
+128,7
@@
uint64_t capture_sequence_element_unsigned(uint8_t *ptr,
uint16_t tmp;
tmp = *(uint16_t *) ptr;
if (byte_order_reversed)
uint16_t tmp;
tmp = *(uint16_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_16(tmp);
+ tmp =
lttng_ust_
bswap_16(tmp);
value = tmp;
break;
value = tmp;
break;
@@
-138,7
+138,7
@@
uint64_t capture_sequence_element_unsigned(uint8_t *ptr,
uint32_t tmp;
tmp = *(uint32_t *) ptr;
if (byte_order_reversed)
uint32_t tmp;
tmp = *(uint32_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_32(tmp);
+ tmp =
lttng_ust_
bswap_32(tmp);
value = tmp;
break;
value = tmp;
break;
@@
-148,7
+148,7
@@
uint64_t capture_sequence_element_unsigned(uint8_t *ptr,
uint64_t tmp;
tmp = *(uint64_t *) ptr;
if (byte_order_reversed)
uint64_t tmp;
tmp = *(uint64_t *) ptr;
if (byte_order_reversed)
- tmp = bswap_64(tmp);
+ tmp =
lttng_ust_
bswap_64(tmp);
value = tmp;
break;
value = tmp;
break;
@@
-214,7
+214,7
@@
void capture_sequence(struct lttng_msgpack_writer *writer,
static
void notification_init(struct lttng_event_notifier_notification *notif,
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;
{
struct lttng_msgpack_writer *writer = ¬if->writer;
@@
-270,7
+270,7
@@
void notification_append_empty_capture(
lttng_msgpack_write_nil(¬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;
{
struct lttng_event_notifier_group *event_notifier_group =
event_notifier->priv->group;
@@
-300,7
+300,7
@@
static void record_error(struct lttng_ust_event_notifier *event_notifier)
static
void notification_send(struct lttng_event_notifier_notification *notif,
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;
{
ssize_t ret;
size_t content_len;
@@
-360,8
+360,9
@@
void notification_send(struct lttng_event_notifier_notification *notif,
}
void lttng_event_notifier_notification_send(
}
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,
const char *stack_data,
+ struct lttng_ust_probe_ctx *probe_ctx,
struct lttng_ust_notification_ctx *notif_ctx)
{
/*
struct lttng_ust_notification_ctx *notif_ctx)
{
/*
@@
-386,7
+387,7
@@
void lttng_event_notifier_notification_send(
struct lttng_interpreter_output output;
if (capture_bc_runtime->interpreter_func(capture_bc_runtime,
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);
notification_append_capture(¬if, &output);
else
notification_append_empty_capture(¬if);
This page took
0.024928 seconds
and
4
git commands to generate.