uprobe: transmit binary file descritptor through lttng_payload
[lttng-tools.git] / src / common / payload-view.c
index 2daa7d3ee5e7221d86a9805a01215ab72bf83a6a..8c99c56efa5d9d122c8fb6571e887cf3c74469cd 100644 (file)
@@ -59,6 +59,16 @@ struct lttng_payload_view lttng_payload_view_from_buffer_view(
        };
 }
 
+LTTNG_HIDDEN
+struct lttng_payload_view lttng_payload_view_init_from_buffer(
+       const char *src, size_t offset, ptrdiff_t len)
+{
+       return (struct lttng_payload_view) {
+               .buffer = lttng_buffer_view_init(
+                       src, offset, len)
+       };
+}
+
 LTTNG_HIDDEN
 int lttng_payload_view_get_fd_count(struct lttng_payload_view *payload_view)
 {
This page took 0.032392 seconds and 4 git commands to generate.