nbd: add tracepoints for send/receive timing
authorAndrew Hall <hall@fb.com>
Fri, 26 Apr 2019 18:49:49 +0000 (11:49 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Apr 2019 02:04:19 +0000 (19:04 -0700)
commit2abd2de712cd891321a06b0890a85aef1e506cb5
tree0e133410f9fb1335c41ef94ee5e8a822206c14bb
parentea106722c76f08002b69a6983ed84dc18958ba48
nbd: add tracepoints for send/receive timing

This adds four tracepoints to nbd, enabling separate tracing of payload
and header sending/receipt.

In the send path for headers that have already been sent, we also
explicitly initialize the handle so it can be referenced by the later
tracepoint.

Signed-off-by: Andrew Hall <hall@fb.com>
Signed-off-by: Matt Mullins <mmullins@fb.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
drivers/block/nbd.c
include/trace/events/nbd.h