projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document nested type alignment field
[lttng-ust.git]
/
include
/
lttng
/
ust-events.h
diff --git
a/include/lttng/ust-events.h
b/include/lttng/ust-events.h
index ceb9cb379c533c792d3f5c9edbda698cf6138065..2232212fed73f7a55ff71a717b2bcbd0e0a2c5a9 100644
(file)
--- 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;
};
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;
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;
};
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;
uint32_t struct_size;
const char *length_name; /* Length field name. */
const struct lttng_ust_type_common *elem_type;
- unsigned int alignment; /*
A
lignment before elements. */
+ unsigned int alignment; /*
Minimum a
lignment before elements. */
enum lttng_ust_string_encoding encoding;
};
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. */
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. */
};
/*
};
/*
This page took
0.024288 seconds
and
4
git commands to generate.