bpf: use map in nvmf_path.bt
Modify nvmf_path.bt to collect the (ip, port) tuples in a map, and then print the map every second. This generates a lot less output than printing the path for every single I/O. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I8f655ed7a4558735f51ddf1169134fbf6950cc1c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10616 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Monica Kenguva <monica.kenguva@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
1b3d4cecb3
commit
76159db955
@ -1,3 +1,8 @@
|
||||
usdt:__EXE__:nvmf_request_io_exec_path {
|
||||
printf("traddr:%s trsvcid:%s\n", str(arg2), str(arg3));
|
||||
@path[str(arg2), str(arg3)] = count();
|
||||
}
|
||||
|
||||
interval:s:1 {
|
||||
print(@path);
|
||||
clear(@path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user