+#define __td_var(start, offset) ((char *) start + (offset))
+
+struct thread_options;
+static inline void *td_var(struct thread_options *to, struct fio_option *o,
+ unsigned int offset)
+{
+ if (o->prof_opts)
+ return __td_var(o->prof_opts, offset);
+
+ return __td_var(to, offset);
+}