X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flttng-context-nice.c;h=891e3339893e8a4b42e80cef9962608a5aec6d2c;hb=HEAD;hp=031d39d95143b696b9880aed07c41a742dfc9c61;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-nice.c b/src/lttng-context-nice.c index 031d39d9..891e3339 100644 --- a/src/lttng-context-nice.c +++ b/src/lttng-context-nice.c @@ -28,14 +28,13 @@ size_t nice_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_ static void nice_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, - struct lib_ring_buffer_ctx *ctx, - struct lttng_channel *chan) + struct lttng_kernel_ring_buffer_ctx *ctx, + struct lttng_kernel_channel_buffer *chan) { int nice; nice = task_nice(current); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(nice)); - chan->ops->event_write(ctx, &nice, sizeof(nice)); + chan->ops->event_write(ctx, &nice, sizeof(nice), lttng_alignof(nice)); } static @@ -49,7 +48,7 @@ void nice_get_value(void *priv, static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field( lttng_kernel_static_event_field("nice", lttng_kernel_static_type_integer_from_type(int, __BYTE_ORDER, 10), - false, false, false), + false, false), nice_get_size, nice_record, nice_get_value,