X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Flttng-context-ppid.c;h=1286c376aaa5ae3d885f50f87c47bdd31e21fd58;hb=HEAD;hp=c9a0d5c38db6e2421627a9bf18077e11a404f6aa;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-ppid.c b/src/lttng-context-ppid.c index c9a0d5c3..b171fe75 100644 --- a/src/lttng-context-ppid.c +++ b/src/lttng-context-ppid.c @@ -29,8 +29,8 @@ size_t ppid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_ static void ppid_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 ppid; @@ -44,8 +44,7 @@ void ppid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, rcu_read_lock(); ppid = task_tgid_nr(current->real_parent); rcu_read_unlock(); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(ppid)); - chan->ops->event_write(ctx, &ppid, sizeof(ppid)); + chan->ops->event_write(ctx, &ppid, sizeof(ppid), lttng_alignof(ppid)); } static @@ -71,7 +70,7 @@ void ppid_get_value(void *priv, static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field( lttng_kernel_static_event_field("ppid", lttng_kernel_static_type_integer_from_type(pid_t, __BYTE_ORDER, 10), - false, false, false), + false, false), ppid_get_size, ppid_record, ppid_get_value,