X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=liblttng-ust-comm%2Flttng-ust-comm.c;h=a0b68896ea35b4b740de7f6ab2fee805d041558a;hb=refs%2Fheads%2Fsow-2020-0002-rev2;hp=520113860a8683cb11216f8434f231d0735aa55a;hpb=ba5b3d2bf3ecd8614e74efc1db2f5a626c5d9a92;p=deliverable%2Flttng-ust.git diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index 52011386..a0b68896 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -1504,7 +1505,9 @@ int ustcomm_register_event(int sock, size_t nr_fields, /* fields */ const struct lttng_event_field *lttng_fields, const char *model_emf_uri, - uint32_t *id) /* event id (output) */ + uint64_t user_token, + uint32_t *event_id, /* event id (output) */ + uint64_t *counter_index) /* counter index (output) */ { ssize_t len; struct { @@ -1527,6 +1530,7 @@ int ustcomm_register_event(int sock, strncpy(msg.m.event_name, event_name, LTTNG_UST_SYM_NAME_LEN); msg.m.event_name[LTTNG_UST_SYM_NAME_LEN - 1] = '\0'; msg.m.loglevel = loglevel; + msg.m.user_token = user_token; signature_len = strlen(signature) + 1; msg.m.signature_len = signature_len; @@ -1610,9 +1614,10 @@ int ustcomm_register_event(int sock, return -EINVAL; if (reply.r.ret_code < 0) return reply.r.ret_code; - *id = reply.r.event_id; - DBG("Sent register event notification for name \"%s\": ret_code %d, event_id %u\n", - event_name, reply.r.ret_code, reply.r.event_id); + *event_id = reply.r.event_id; + *counter_index = reply.r.counter_index; + DBG("Sent register event notification for name \"%s\": ret_code %d, event_id %u, counter_index %" PRIu64 "\n", + event_name, reply.r.ret_code, reply.r.event_id, reply.r.counter_index); return 0; default: if (len < 0) {