X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-events.h;h=64a1ac56777f5a141c012b758a449e34fed16627;hb=7df57eb5d6bdc85ddcf2b9afb6cd0cacfb22096e;hp=aeb2a6b25631242f76b81cf7ffb698a93ae9cee3;hpb=0c95667685cf8612eb0d231883874c173b7bb5a1;p=lttng-modules.git diff --git a/lttng-events.h b/lttng-events.h index aeb2a6b2..64a1ac56 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -236,6 +236,10 @@ struct lttng_channel_ops { const void *src, size_t len); void (*event_memset)(struct lib_ring_buffer_ctx *ctx, int c, size_t len); + void (*event_strcpy)(struct lib_ring_buffer_ctx *ctx, const char *src, + size_t len); + void (*event_strcpy_from_user)(struct lib_ring_buffer_ctx *ctx, + const char __user *src, size_t len); /* * packet_avail_size returns the available size in the current * packet. Note that the size returned is only a hint, since it @@ -307,6 +311,7 @@ struct lttng_metadata_stream { wait_queue_head_t read_wait; /* Reader buffer-level wait queue */ struct list_head list; /* Stream list */ struct lttng_transport *transport; + struct mutex lock; }; struct lttng_session { @@ -328,6 +333,7 @@ struct lttng_metadata_cache { unsigned int metadata_written; /* Number of bytes written in metadata cache */ struct kref refcount; /* Metadata cache usage */ struct list_head metadata_stream; /* Metadata stream list */ + uuid_le uuid; /* Trace session unique ID (copy) */ }; struct lttng_session *lttng_session_create(void);