X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ring-buffer-client-template.h;fp=liblttng-ust%2Flttng-ring-buffer-client-template.h;h=eee49d635fa8fb79467c6593f54309dc6d9d71f8;hb=4e48b5d2debaf6c0c598489c183cc6cb2125c8a3;hp=d4f25fccf7ecdb64b8d6bb8b9ee512bed9cc6a01;hpb=5152f6df156d6ccb234965d1b3d26b167bd6b94e;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ring-buffer-client-template.h b/liblttng-ust/lttng-ring-buffer-client-template.h index d4f25fcc..eee49d63 100644 --- a/liblttng-ust/lttng-ring-buffer-client-template.h +++ b/liblttng-ust/lttng-ring-buffer-client-template.h @@ -115,9 +115,9 @@ void ctx_get_struct_size(struct lttng_ust_ctx *ctx, size_t *ctx_len, } for (i = 0; i < ctx->nr_fields; i++) { if (mode == APP_CTX_ENABLED) { - offset += ctx->fields[i]->get_size(ctx->fields[i], offset); + offset += ctx->fields[i].get_size(&ctx->fields[i], offset); } else { - if (lttng_context_is_app(ctx->fields[i]->event_field->name)) { + if (lttng_context_is_app(ctx->fields[i].event_field->name)) { /* * Before UST 2.8, we cannot use the * application context, because we @@ -128,9 +128,9 @@ void ctx_get_struct_size(struct lttng_ust_ctx *ctx, size_t *ctx_len, * concurrently with application context * register/unregister. */ - offset += lttng_ust_dummy_get_size(ctx->fields[i], offset); + offset += lttng_ust_dummy_get_size(&ctx->fields[i], offset); } else { - offset += ctx->fields[i]->get_size(ctx->fields[i], offset); + offset += ctx->fields[i].get_size(&ctx->fields[i], offset); } } } @@ -150,9 +150,9 @@ void ctx_record(struct lttng_ust_lib_ring_buffer_ctx *bufctx, lttng_ust_lib_ring_buffer_align_ctx(bufctx, ctx->largest_align); for (i = 0; i < ctx->nr_fields; i++) { if (mode == APP_CTX_ENABLED) { - ctx->fields[i]->record(ctx->fields[i], bufctx, chan); + ctx->fields[i].record(&ctx->fields[i], bufctx, chan); } else { - if (lttng_context_is_app(ctx->fields[i]->event_field->name)) { + if (lttng_context_is_app(ctx->fields[i].event_field->name)) { /* * Before UST 2.8, we cannot use the * application context, because we @@ -163,9 +163,9 @@ void ctx_record(struct lttng_ust_lib_ring_buffer_ctx *bufctx, * concurrently with application context * register/unregister. */ - lttng_ust_dummy_record(ctx->fields[i], bufctx, chan); + lttng_ust_dummy_record(&ctx->fields[i], bufctx, chan); } else { - ctx->fields[i]->record(ctx->fields[i], bufctx, chan); + ctx->fields[i].record(&ctx->fields[i], bufctx, chan); } } }