X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Flib%2Flttng-ust%2Flttng-context-pthread-id.c;h=452639e1d6f81f36b3f8c53de10c92a2db773a06;hb=4d03f5699ca5129319b8ceb7baef85bbf05f3f3e;hp=f6f8d76815c0c133d273fd5e6831dc11491aa205;hpb=b5457df5fd74e033cbaa75307f9bbc12aff4ab8f;p=lttng-ust.git diff --git a/src/lib/lttng-ust/lttng-context-pthread-id.c b/src/lib/lttng-ust/lttng-context-pthread-id.c index f6f8d768..452639e1 100644 --- a/src/lib/lttng-ust/lttng-context-pthread-id.c +++ b/src/lib/lttng-ust/lttng-context-pthread-id.c @@ -12,12 +12,13 @@ #include #include #include -#include +#include #include "context-internal.h" static size_t pthread_id_get_size(void *priv __attribute__((unused)), + struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)), size_t offset) { size_t size = 0; @@ -29,8 +30,9 @@ size_t pthread_id_get_size(void *priv __attribute__((unused)), static void pthread_id_record(void *priv __attribute__((unused)), - struct lttng_ust_ring_buffer_ctx *ctx, - struct lttng_ust_channel_buffer *chan) + struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)), + struct lttng_ust_ring_buffer_ctx *ctx, + struct lttng_ust_channel_buffer *chan) { unsigned long pthread_id; @@ -40,9 +42,10 @@ void pthread_id_record(void *priv __attribute__((unused)), static void pthread_id_get_value(void *priv __attribute__((unused)), + struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)), struct lttng_ust_ctx_value *value) { - value->u.s64 = (unsigned long) pthread_self(); + value->u.u64 = (unsigned long) pthread_self(); } static const struct lttng_ust_ctx_field *ctx_field = lttng_ust_static_ctx_field( @@ -50,7 +53,7 @@ static const struct lttng_ust_ctx_field *ctx_field = lttng_ust_static_ctx_field( lttng_ust_static_type_integer(sizeof(unsigned long) * CHAR_BIT, lttng_ust_rb_alignof(unsigned long) * CHAR_BIT, lttng_ust_is_signed_type(unsigned long), - BYTE_ORDER, 10), + LTTNG_UST_BYTE_ORDER, 10), false, false), pthread_id_get_size, pthread_id_record,