Document expected ISO8601 time formats in ABI header
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 14 Mar 2022 17:41:47 +0000 (13:41 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 14 Mar 2022 17:41:47 +0000 (13:41 -0400)
Document the expected ISO8601 time formats in the ABI header to justify
the choice of string maximum length.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I9f649e90ff14389e5ad5be1c9d0c3c6f3846a242

lttng-abi.h

index 51d60e5be8ce13d14f4a520cc53f16440b959e35..9d6595f72c0b3eeb57173958262bb41ca0f7c3e9 100644 (file)
 
 #define LTTNG_KERNEL_SYM_NAME_LEN      256
 #define LTTNG_KERNEL_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_SESSION_CREATION_TIME_ISO8601_LEN 26
 
 enum lttng_kernel_instrumentation {
This page took 0.027063 seconds and 4 git commands to generate.