X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-events.h;h=9a46e678ad782afaaf13a3b97df3a0adf1ed5f89;hb=b2cc986adb1aa11116ace6129dc2ec7e5c9737b1;hp=01f611b29c789909f7f933698c1e71b7be8d9cc6;hpb=631dc14c99a187453b9c46aca090fcf3b7ed8ec9;p=lttng-ust.git diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 01f611b2..9a46e678 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -258,11 +258,12 @@ struct lttng_ctx_field { void (*destroy)(struct lttng_ctx_field *field); }; -#define LTTNG_UST_CTX_PADDING 24 +#define LTTNG_UST_CTX_PADDING 20 struct lttng_ctx { struct lttng_ctx_field *fields; unsigned int nr_fields; unsigned int allocated_fields; + unsigned int largest_align; char padding[LTTNG_UST_CTX_PADDING]; }; @@ -590,6 +591,7 @@ void lttng_probes_exit(void); int lttng_find_context(struct lttng_ctx *ctx, const char *name); int lttng_get_context_index(struct lttng_ctx *ctx, const char *name); struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p); +void lttng_context_update(struct lttng_ctx *ctx); void lttng_remove_context_field(struct lttng_ctx **ctx_p, struct lttng_ctx_field *field); void lttng_destroy_context(struct lttng_ctx *ctx);