[Virtio-fs] [PATCH 0/2][RFC] virtio-fs: Add some tracepoints
Masayoshi Mizuma
msys.mizuma at gmail.com
Mon Jul 29 21:34:29 UTC 2019
From: Masayoshi Mizuma <m.mizuma at jp.fujitsu.com>
This patch series introduce some tracepoints. It will be
useful to debug the I/O request flow.
New trace events:
- virtiofs_request_dispatched
- virtiofs_request_done
- virtiofs_hiprio_request_dispatched
- virtiofs_hiprio_request_done
Above trace events is added to the following functions as
the tracepoints:
- virtio_fs_enqueue_req
- virtio_fs_requests_done_work
- virtio_fs_hiprio_dispatch_work
- virtio_fs_hiprio_done_work
Example of the trace record:
cat-1420 [002] .... 34.687462: virtiofs_request_dispatched: opcode
FUSE_READ unique 0x1a nodeid 0x2 in.len 80 flags ISREPLY|WAITING|SENT
notify 1
kworker/4:1-67 [004] .... 34.687531: virtiofs_request_done: opcode FUSE_READ
unique 0x1a nodeid 0x2 in.len 80 flags ISREPLY|WAITING
Masayoshi Mizuma (2):
add ftrace events
add tracepoints
fs/fuse/virtio_fs.c | 21 ++++
include/trace/events/virtiofs.h | 195 ++++++++++++++++++++++++++++++++
2 files changed, 216 insertions(+)
create mode 100644 include/trace/events/virtiofs.h
--
2.18.1
More information about the Virtio-fs
mailing list