+typedef enum {
+ WORK_INTERVAL_START,
+ WORK_INTERVAL_UPDATE,
+ WORK_INTERVAL_FINISH
+} work_interval_ctl_t;
+
+struct perfcontrol_work_interval_instance {
+ work_interval_ctl_t ctl;
+ uint32_t create_flags;
+ uint64_t complexity;
+ uint64_t thread_id;
+ uint64_t work_interval_id;
+ uint64_t instance_id; /* out: start, in: update/finish */
+ uint64_t start;
+ uint64_t finish;
+ uint64_t deadline;
+ uint64_t thread_group_id;
+ void *thread_group_data;
+};
+typedef struct perfcontrol_work_interval_instance *perfcontrol_work_interval_instance_t;