OSDN Git Service

nbd: trace sending nbd requests
authorMatt Mullins <mmullins@fb.com>
Fri, 26 Apr 2019 18:49:48 +0000 (11:49 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Apr 2019 02:04:19 +0000 (19:04 -0700)
commitea106722c76f08002b69a6983ed84dc18958ba48
tree740b273cebfa9af47c98530803177034d6abb851
parent9df1c28bb75217b244257152ab7d788bb2a386d0
nbd: trace sending nbd requests

This adds a tracepoint that can both observe the nbd request being sent
to the server, as well as modify that request , e.g., setting a flag in
the request that will cause the server to collect detailed tracing data.

The struct request * being handled is included to permit correlation
with the block tracepoints.

Signed-off-by: Matt Mullins <mmullins@fb.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
MAINTAINERS
drivers/block/nbd.c
include/trace/events/nbd.h [new file with mode: 0644]