X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-preemptible.c;h=9098f4b06b1a006e7823ac4b3d3293347440f92c;hb=437d5aa59380583ce1cd14d394a53b398be1275d;hp=6130a1a26d4acf4313b76c356ad0cda12c7754ac;hpb=cfa6cc1d0f01c2cfcc1a679abf3a6572d411c309;p=lttng-modules.git diff --git a/src/lttng-context-preemptible.c b/src/lttng-context-preemptible.c index 6130a1a2..9098f4b0 100644 --- a/src/lttng-context-preemptible.c +++ b/src/lttng-context-preemptible.c @@ -35,7 +35,7 @@ size_t preemptible_get_size(size_t offset) } static -void preemptible_record(struct lttng_ctx_field *field, +void preemptible_record(struct lttng_kernel_ctx_field *field, struct lib_ring_buffer_ctx *ctx, struct lttng_channel *chan) { @@ -50,7 +50,7 @@ void preemptible_record(struct lttng_ctx_field *field, } static -void preemptible_get_value(struct lttng_ctx_field *field, +void preemptible_get_value(struct lttng_kernel_ctx_field *field, struct lttng_probe_ctx *lttng_probe_ctx, union lttng_ctx_value *value) { @@ -63,9 +63,9 @@ void preemptible_get_value(struct lttng_ctx_field *field, value->s64 = 0; } -int lttng_add_preemptible_to_ctx(struct lttng_ctx **ctx) +int lttng_add_preemptible_to_ctx(struct lttng_kernel_ctx **ctx) { - struct lttng_ctx_field *field; + struct lttng_kernel_ctx_field *field; field = lttng_append_context(ctx); if (!field) @@ -75,13 +75,13 @@ int lttng_add_preemptible_to_ctx(struct lttng_ctx **ctx) return -EEXIST; } field->event_field.name = "preemptible"; - field->event_field.type.atype = atype_integer; + field->event_field.type.type = lttng_kernel_type_integer; field->event_field.type.u.integer.size = sizeof(uint8_t) * CHAR_BIT; field->event_field.type.u.integer.alignment = lttng_alignof(uint8_t) * CHAR_BIT; field->event_field.type.u.integer.signedness = lttng_is_signed_type(uint8_t); field->event_field.type.u.integer.reverse_byte_order = 0; field->event_field.type.u.integer.base = 10; - field->event_field.type.u.integer.encoding = lttng_encode_none; + field->event_field.type.u.integer.encoding = lttng_kernel_string_encoding_none; field->get_size = preemptible_get_size; field->record = preemptible_record; field->get_value = preemptible_get_value;