sequence and variant types: use previous field for length/tag if NULL
[lttng-modules.git] / include / instrumentation / events / net.h
index be59533d4953e2e313f236bf4921cc455f041146..dc0e77b7f3d5b5477cd84697793807eb08be2266 100644 (file)
@@ -264,7 +264,7 @@ static const struct lttng_kernel_event_field *ipv4fields[] = {
                false, false, false),
        [12] = lttng_kernel_static_event_field("transport_header",
                lttng_kernel_static_type_variant(ARRAY_SIZE(transport_fields), transport_fields,
-                       "transport_header_type", 0),
+                       NULL, 0),       /* Previous field as tag. */
                false, false, false),
 };
 
@@ -300,7 +300,7 @@ static const struct lttng_kernel_event_field *ipv6fields[] = {
                false, false, false),
        [9] = lttng_kernel_static_event_field("transport_header",
                lttng_kernel_static_type_variant(ARRAY_SIZE(transport_fields),
-                       transport_fields, "transport_header_type", 0),
+                       transport_fields, NULL, 0),     /* Previous field as tag. */
                false, false, false),
 };
 
@@ -358,7 +358,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(net_dev_template,
                ctf_custom_field(
                        ctf_custom_type(
                                lttng_kernel_static_type_variant(ARRAY_SIZE(network_fields),
-                                       network_fields, "network_header_type", 0)
+                                       network_fields, NULL, 0)        /* Previous field as tag. */
                        ),
                        network_header,
                        ctf_custom_code(
This page took 0.023717 seconds and 4 git commands to generate.