X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-events.h;h=c2eba8f60e2df984611b04752c875361a2c25b13;hb=refs%2Fheads%2Fstable-2.6;hp=e5cd0eeadeb6198b20958c34f68f517b13aa6710;hpb=7c92789f2e3f8b1d17e92ec9ade72fdab159c0f2;p=lttng-modules.git diff --git a/lttng-events.h b/lttng-events.h index e5cd0eea..c2eba8f6 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -167,6 +167,7 @@ struct lttng_ctx { struct lttng_ctx_field *fields; unsigned int nr_fields; unsigned int allocated_fields; + size_t largest_align; /* in bytes */ }; struct lttng_event_desc { @@ -320,7 +321,6 @@ 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 { @@ -343,6 +343,7 @@ struct lttng_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 mutex lock; }; struct lttng_session *lttng_session_create(void); @@ -448,6 +449,7 @@ int lttng_abi_syscall_list(void) #endif struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx); +void lttng_context_update(struct lttng_ctx *ctx); int lttng_find_context(struct lttng_ctx *ctx, const char *name); void lttng_remove_context_field(struct lttng_ctx **ctx, struct lttng_ctx_field *field);