X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-pid.c;h=5bcbe00c57e6dbc4ae15cb3681070955823551af;hb=9e9905bf0c055090b891868dfc0ec5910f7d1a1e;hp=b43503e682d2f29760a86d94425bf862621dafb9;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-pid.c b/src/lttng-context-pid.c index b43503e6..5bcbe00c 100644 --- a/src/lttng-context-pid.c +++ b/src/lttng-context-pid.c @@ -28,14 +28,13 @@ size_t pid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t static void pid_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) { pid_t pid; pid = task_tgid_nr(current); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(pid)); - chan->ops->event_write(ctx, &pid, sizeof(pid)); + chan->ops->event_write(ctx, &pid, sizeof(pid), lttng_alignof(pid)); } static