Implement ring buffer Pascal string copy
[lttng-modules.git] / src / lttng-ring-buffer-metadata-client.h
index bd2ca4753b2e4c5b9f4f6a2d46bf375f500af536..763ebaf1274592a3dd5c665491ad81f59fb31c75 100644 (file)
@@ -354,6 +354,13 @@ void lttng_event_strcpy(struct lttng_kernel_ring_buffer_ctx *ctx, const char *sr
        lib_ring_buffer_strcpy(&client_config, ctx, src, len, '#');
 }
 
+static
+void lttng_event_pstrcpy_pad(struct lttng_kernel_ring_buffer_ctx *ctx, const char *src,
+               size_t len)
+{
+       lib_ring_buffer_pstrcpy(&client_config, ctx, src, len, '\0');
+}
+
 static
 size_t lttng_packet_avail_size(struct lttng_kernel_ring_buffer_channel *chan)
 {
@@ -429,6 +436,7 @@ static struct lttng_transport lttng_relay_transport = {
                .event_memset = lttng_event_memset,
                .event_write = lttng_event_write,
                .event_strcpy = lttng_event_strcpy,
+               .event_pstrcpy_pad = lttng_event_pstrcpy_pad,
        },
 };
 
This page took 0.022961 seconds and 4 git commands to generate.