Skip to content

RFC virtio-fs: Add some tracepoints

Masayoshi Mizuma virtio-fs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtio-fs: add ftrace eventsinclude/trace/events/virtiofs.h+195 -02 replies
2/2virtio-fs: add tracepointsfs/fuse/virtio_fs.c+21 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Virtio-fs] [PATCH 0/2][RFC] virtio-fs: Add some tracepoints

From: Masayoshi Mizuma <[email protected]>

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
Signature · 1 line
2.18.1