X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Fust-events.h;h=95b4698de089bb08440687bbcb226f7ca461bcd2;hb=b4c54822d66aaf7bc10fe27cb8bfd8622b370d6b;hp=ceb9cb379c533c792d3f5c9edbda698cf6138065;hpb=4e48b5d2debaf6c0c598489c183cc6cb2125c8a3;p=lttng-ust.git diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index ceb9cb37..95b4698d 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -174,12 +174,19 @@ struct lttng_ust_type_enum { const struct lttng_ust_type_common *container_type; }; +/* + * The alignment field in structure, array, and sequence types is a + * minimum alignment requirement. The actual alignment of a type may be + * larger than this explicit alignment value if its nested types have a + * larger alignment. + */ + struct lttng_ust_type_array { struct lttng_ust_type_common parent; uint32_t struct_size; const struct lttng_ust_type_common *elem_type; - unsigned int length; /* Num. elems. */ - unsigned int alignment; + unsigned int length; /* Num. elems. */ + unsigned int alignment; /* Minimum alignment for this type. */ enum lttng_ust_string_encoding encoding; }; @@ -188,7 +195,7 @@ struct lttng_ust_type_sequence { uint32_t struct_size; const char *length_name; /* Length field name. */ const struct lttng_ust_type_common *elem_type; - unsigned int alignment; /* Alignment before elements. */ + unsigned int alignment; /* Minimum alignment before elements. */ enum lttng_ust_string_encoding encoding; }; @@ -197,7 +204,7 @@ struct lttng_ust_type_struct { uint32_t struct_size; unsigned int nr_fields; const struct lttng_ust_event_field **fields; /* Array of pointers to fields. */ - unsigned int alignment; + unsigned int alignment; /* Minimum alignment for this type. */ }; /* @@ -342,7 +349,7 @@ struct lttng_ust_event_common { int enabled; int eval_filter; /* Need to evaluate filters */ - int (*run_filter)(struct lttng_ust_event_common *event, + int (*run_filter)(const struct lttng_ust_event_common *event, const char *stack_data, void *filter_ctx); @@ -415,7 +422,7 @@ struct lttng_ust_event_notifier { struct lttng_ust_event_notifier_private *priv; /* Private event notifier interface */ int eval_capture; /* Need to evaluate capture */ - void (*notification_send)(struct lttng_ust_event_notifier *event_notifier, + void (*notification_send)(const struct lttng_ust_event_notifier *event_notifier, const char *stack_data, struct lttng_ust_notification_ctx *notif_ctx);