Warn and return on fd overflow fdt
[lttng-modules.git] / include / lttng / abi.h
index 40317e86c5f89e20811434ced24b9aed46aae564..f8af1dd04f8ce09f0cf5d3ffcb0e24dc594bb76e 100644 (file)
 
 #define LTTNG_KERNEL_ABI_SYM_NAME_LEN          256
 #define LTTNG_KERNEL_ABI_SESSION_NAME_LEN      256
+
+/*
+ * The expected iso8601 time formats are either:
+ *
+ * - YYYYmmddTHHMMSS+HHMM           (20 characters + \0)
+ * - YYYY-mm-ddTHH:MM:SS+HH:MM      (25 characters + \0)
+ */
 #define LTTNG_KERNEL_ABI_SESSION_CREATION_TIME_ISO8601_LEN     26
 
 enum lttng_kernel_abi_instrumentation {
@@ -318,7 +325,7 @@ struct lttng_kernel_abi_filter_bytecode {
        uint32_t len;
        uint32_t reloc_offset;
        uint64_t seqnum;
-       char data[0];
+       char data[];
 } __attribute__((packed));
 
 #define LTTNG_KERNEL_ABI_CAPTURE_BYTECODE_MAX_LEN              65536
@@ -326,7 +333,7 @@ struct lttng_kernel_abi_capture_bytecode {
        uint32_t len;
        uint32_t reloc_offset;
        uint64_t seqnum;
-       char data[0];
+       char data[];
 } __attribute__((packed));
 
 enum lttng_kernel_abi_tracker_type {
This page took 0.023395 seconds and 4 git commands to generate.