History

SUNRPC: Trace calls to .rpc_call_done

Introduce a single tracepoint that can replace simple dprintk call sites in upper layer "rpc_call_done" callbacks. Example: kworker/u24:2-1254 [001] 771.026677: rpc_stats_latency: task:00000001@00000002 xid=0x16a6f3c0 rpcbindv2 GETPORT backlog=446 rtt=101 execute=555 kworker/u24:2-1254 [001] 771.026677: rpc_task_call_done: task:00000001@00000002 flags=ASYNC|DYNAMIC|SOFT|SOFTCONN|SENT runstate=RUNNING|ACTIVE status=0 action=rpcb_getport_done kworker/u24:2-1254 [001] 771.026678: rpcb_setport: task:00000001@00000002 status=0 port=20048

Chuck Lever committed 5 years ago

Commit b40887e1 parent d9f87749 files · +2 −17Browse files

Showing the changes to include/trace (1 of 9 files). Show all

Unified · Split

include/trace/events/sunrpc.h+1−0
@@ -378,6 +378,7 @@ DEFINE_RPC_RUNNING_EVENT(complete); · 377 unmodified lines
378DEFINE_RPC_RUNNING_EVENT(timeout);378DEFINE_RPC_RUNNING_EVENT(timeout);
379DEFINE_RPC_RUNNING_EVENT(signalled);379DEFINE_RPC_RUNNING_EVENT(signalled);
380DEFINE_RPC_RUNNING_EVENT(end);380DEFINE_RPC_RUNNING_EVENT(end);
381DEFINE_RPC_RUNNING_EVENT(call_done);
381 382
382DECLARE_EVENT_CLASS(rpc_task_queued,383DECLARE_EVENT_CLASS(rpc_task_queued,
383 384