FUNCTRACE(cct);
ZTracer::Trace trace;
if (image_ctx.blkin_trace_all) {
- trace.init("wq: read", &image_ctx.trace_endpoint);
- trace.event("start");
+ trace.init("io: read", &image_ctx.trace_endpoint);
+ trace.event("init");
}
aio_comp->init_time(util::get_image_ctx(&image_ctx), io::AIO_TYPE_READ);
auto req = io::ImageDispatchSpec<I>::create_read(
image_ctx, io::IMAGE_DISPATCH_LAYER_API_START, aio_comp, {{off, len}},
- std::move(read_result), op_flags, {});
+ std::move(read_result), op_flags, trace);
req->send();
}
FUNCTRACE(cct);
ZTracer::Trace trace;
if (image_ctx.blkin_trace_all) {
- trace.init("wq: write", &image_ctx.trace_endpoint);
+ trace.init("io: write", &image_ctx.trace_endpoint);
trace.event("init");
}
auto req = io::ImageDispatchSpec<I>::create_write(
image_ctx, io::IMAGE_DISPATCH_LAYER_API_START, aio_comp, {{off, len}},
- std::move(bl), op_flags, {}, 0);
+ std::move(bl), op_flags, trace, 0);
req->send();
}
FUNCTRACE(cct);
ZTracer::Trace trace;
if (image_ctx.blkin_trace_all) {
- trace.init("wq: discard", &image_ctx.trace_endpoint);
+ trace.init("io: discard", &image_ctx.trace_endpoint);
trace.event("init");
}
auto req = io::ImageDispatchSpec<I>::create_discard(
image_ctx, io::IMAGE_DISPATCH_LAYER_API_START, aio_comp, off, len,
- discard_granularity_bytes, {}, 0);
+ discard_granularity_bytes, trace, 0);
req->send();
}
FUNCTRACE(cct);
ZTracer::Trace trace;
if (image_ctx.blkin_trace_all) {
- trace.init("wq: writesame", &image_ctx.trace_endpoint);
+ trace.init("io: writesame", &image_ctx.trace_endpoint);
trace.event("init");
}
auto req = io::ImageDispatchSpec<I>::create_write_same(
image_ctx, io::IMAGE_DISPATCH_LAYER_API_START, aio_comp, off, len,
- std::move(bl), op_flags, {}, 0);
+ std::move(bl), op_flags, trace, 0);
req->send();
}
FUNCTRACE(cct);
ZTracer::Trace trace;
if (image_ctx.blkin_trace_all) {
- trace.init("wq: compare_and_write", &image_ctx.trace_endpoint);
+ trace.init("io: compare_and_write", &image_ctx.trace_endpoint);
trace.event("init");
}
auto req = io::ImageDispatchSpec<I>::create_compare_and_write(
image_ctx, io::IMAGE_DISPATCH_LAYER_API_START, aio_comp, {{off, len}},
- std::move(cmp_bl), std::move(bl), mismatch_off, op_flags, {}, 0);
+ std::move(cmp_bl), std::move(bl), mismatch_off, op_flags, trace, 0);
req->send();
}
FUNCTRACE(cct);
ZTracer::Trace trace;
if (image_ctx.blkin_trace_all) {
- trace.init("wq: flush", &image_ctx.trace_endpoint);
+ trace.init("io: flush", &image_ctx.trace_endpoint);
trace.event("init");
}
auto req = io::ImageDispatchSpec<I>::create_flush(
image_ctx, io::IMAGE_DISPATCH_LAYER_API_START, aio_comp,
- io::FLUSH_SOURCE_USER, {});
+ io::FLUSH_SOURCE_USER, trace);
req->send();
}