Cleanup: events.h: add alignment comments and fix whitespace
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 6 Jan 2022 23:30:51 +0000 (18:30 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 17 Jan 2022 15:57:30 +0000 (10:57 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I327a85a2c3e259830795f181f218b1f3504f24fb

include/instrumentation/syscalls/headers/syscalls_pointers_override.h
include/lttng/events.h

index ed8041dd21a8ec2753f364afc03e45b3c8271fca..0b7134b68217f3e4ee6727fee50a200298851146 100644 (file)
@@ -505,7 +505,7 @@ static_assert(((ARRAY_SIZE(lttng_pollfd_flag_fields) - 1) + POLL_FLAGS_PADDING_S
 #endif /* LTTNG_TRACEPOINT_TYPE_EXTERN */
 
 LTTNG_TRACEPOINT_TYPE(PARAMS(const struct lttng_kernel_type_struct lttng_pollfd_flag_fields_struct),
-       PARAMS(lttng_kernel_static_type_struct_init( ARRAY_SIZE(lttng_pollfd_flag_fields), lttng_pollfd_flag_fields, 0)))
+       PARAMS(lttng_kernel_static_type_struct_init(ARRAY_SIZE(lttng_pollfd_flag_fields), lttng_pollfd_flag_fields, 0)))
 
 #ifndef LTTNG_TRACEPOINT_TYPE_EXTERN
 static const struct lttng_kernel_event_field *lttng_pollfd_fields[] = {
index fa3e7e90591fd05bf136d62f896bb7d821397a65..d25f4282dde15f79bd8e77202773307763fc6c1a 100644 (file)
@@ -94,7 +94,7 @@ struct lttng_kernel_type_array {
        struct lttng_kernel_type_common parent;
        const struct lttng_kernel_type_common *elem_type;
        unsigned int length;                    /* Num. elems. */
-       unsigned int alignment;
+       unsigned int alignment;         /* Alignment in bytes before elements. */
        enum lttng_kernel_string_encoding encoding;
 };
 
@@ -102,7 +102,7 @@ struct lttng_kernel_type_sequence {
        struct lttng_kernel_type_common parent;
        const char *length_name;        /* Length field name. If NULL, use previous field. */
        const struct lttng_kernel_type_common *elem_type;
-       unsigned int alignment;         /* Alignment before elements. */
+       unsigned int alignment;         /* Alignment in bytes before elements. */
        enum lttng_kernel_string_encoding encoding;
 };
 
@@ -110,7 +110,7 @@ struct lttng_kernel_type_struct {
        struct lttng_kernel_type_common parent;
        unsigned int nr_fields;
        const struct lttng_kernel_event_field * const *fields;  /* Array of pointers to fields. */
-       unsigned int alignment;
+       unsigned int alignment;         /* Alignment in bits */
 };
 
 struct lttng_kernel_type_variant {
@@ -118,7 +118,7 @@ struct lttng_kernel_type_variant {
        const char *tag_name;           /* Tag field name. If NULL, use previous field. */
        const struct lttng_kernel_event_field * const *choices; /* Array of pointers to fields. */
        unsigned int nr_choices;
-       unsigned int alignment;
+       unsigned int alignment;         /* Alignment in bytes */
 };
 
 struct lttng_kernel_enum_desc {
This page took 0.027608 seconds and 4 git commands to generate.