nvmf: add dtrace probe for nvmf io path
This can be used for multipath validation. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Iba62c5e90b22a9a85078fbc783d3a7273c029cde Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10137 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
0cedafeb63
commit
1e2c5b1f3d
@ -3820,6 +3820,10 @@ nvmf_ctrlr_process_io_cmd(struct spdk_nvmf_request *req)
|
||||
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
||||
}
|
||||
|
||||
SPDK_DTRACE_PROBE3(nvmf_request_io_exec_path, req,
|
||||
req->qpair->ctrlr->listener->trid->traddr,
|
||||
req->qpair->ctrlr->listener->trid->trsvcid);
|
||||
|
||||
/* scan-build falsely reporting dereference of null pointer */
|
||||
assert(group != NULL && group->sgroups != NULL);
|
||||
ns_info = &group->sgroups[ctrlr->subsys->id].ns_info[nsid - 1];
|
||||
|
3
scripts/bpf/nvmf_path.bt
Normal file
3
scripts/bpf/nvmf_path.bt
Normal file
@ -0,0 +1,3 @@
|
||||
usdt:__EXE__:nvmf_request_io_exec_path {
|
||||
printf("traddr:%s trsvcid:%s\n", str(arg2), str(arg3));
|
||||
}
|
Loading…
Reference in New Issue
Block a user