+int kernctl_session_set_creation_time(int fd, time_t time)
+{
+ int ret;
+ struct lttng_kernel_session_creation_time creation_time;
+
+ ret = time_t_to_ISO8601(creation_time.iso8601, sizeof(creation_time.iso8601), time);
+ if (ret) {
+ return -1;
+ }
+
+ return LTTNG_IOCTL_CHECK(fd, LTTNG_KERNEL_SESSION_SET_CREATION_TIME,
+ &creation_time);
+}
+