- unsigned int *io_u_plat = (unsigned int *)(td->ts.io_u_plat[ddir]);
- unsigned int *dst = malloc(FIO_IO_U_PLAT_NR * sizeof(unsigned int));
- memcpy(dst, io_u_plat, FIO_IO_U_PLAT_NR * sizeof(unsigned int));
- __add_log_sample(iolog, (uint64_t)dst, ddir, bs, elapsed, offset);
+ io_u_plat = (unsigned int *) td->ts.io_u_plat[ddir];
+ dst = malloc(sizeof(struct io_u_plat_entry));
+ memcpy(&(dst->io_u_plat), io_u_plat,
+ FIO_IO_U_PLAT_NR * sizeof(unsigned int));
+ flist_add(&dst->list, &hw->list);
+ __add_log_sample(iolog, sample_plat(dst), ddir, bs,
+ elapsed, offset);