Lines Matching full:spec
266 * @spec: IO trace specification
270 static void io_bunch_add(struct io_stream *stream, struct io_spec *spec)
274 .sector = spec->sector,
275 .nbytes = spec->bytes,
276 .rw = spec->rw
281 assert(stream->last_time == 0 || stream->last_time <= spec->time);
284 stream->last_time = spec->time;
482 * @spec: IO specifier for trace
486 static int next_io(struct ifile_info *iip, struct io_spec *spec)
512 spec->time = t.time;
513 spec->sector = t.sector;
514 spec->bytes = t.bytes;
519 spec->time = be64_to_cpu(t.time);
520 spec->sector = be64_to_cpu(t.sector);
521 spec->bytes = be32_to_cpu(t.bytes);
546 spec->rw = (action & BLK_TC_ACT(BLK_TC_READ)) ? 1 : 0;
549 iip->cpu, (long long unsigned)spec->sector,
550 (long long unsigned)spec->bytes / 512LLU,
551 spec->rw, (long long unsigned)spec->time);
554 iip->genesis = spec->time;
559 else if (iip->genesis > spec->time)
563 (long long unsigned )spec->time);
644 * @spec: IO trace specification
646 static inline int bunch_done(struct io_stream *stream, struct io_spec *spec)
651 if ((spec->time - stream->start_time) > max_bunch_tm)
660 * @spec: IO trace specification
662 static void stream_add_io(struct io_stream *stream, struct io_spec *spec)
666 io_bunch_create(stream, spec->time);
667 else if (bunch_done(stream, spec)) {
669 io_bunch_create(stream, spec->time);
672 io_bunch_add(stream, spec);
764 struct io_spec spec;
768 while (next_io(iip, &spec))
769 stream_add_io(stream, &spec);