numam-spdk/app
Jim Harris e0ca35c4f6 spdk_top: allow connecting with TCP port
JSON-RPC server (spdk_rpc_listen) only listens on
a UNIX domain socket.  If users wish to issue
JSON-RPC calls over a TCP socket for debugging
purposes, they can forward calls using socat, i.e.

socat TCP4-LISTEN:8989,reuseaddr,fork,bind=127.0.0.1 \
      UNIX-CLIENT:/var/tmp/spdk.sock

This could allow running spdk_top to debug or
monitor an SPDK application remotely.  But currently
spdk_top -r option assumes AF_UNIX.  Look at the
first character in the -r option (if provided) - if
it's '/' use AF_UNIX, otherwise AF_INET.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ie9c33bb0fb66dff895359f6f6608862df42b542c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11567
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2022-02-15 16:46:17 +00:00
..
iscsi_tgt net: Remove library 2021-07-13 08:57:58 +00:00
iscsi_top build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
nvmf_tgt event: Shift subsystem initialization code to a separate library 2021-05-24 10:12:50 +00:00
spdk_dd spelling: app 2021-11-30 09:04:05 +00:00
spdk_lspci app: add missed spdk_env_fini() call when exiting 2022-01-11 14:19:05 +00:00
spdk_tgt event: Shift subsystem initialization code to a separate library 2021-05-24 10:12:50 +00:00
spdk_top spdk_top: allow connecting with TCP port 2022-02-15 16:46:17 +00:00
trace app/trace: include relation information while printing json 2021-10-21 17:57:33 +00:00
trace_record app/trace_record: modify help case to return 0 2021-02-26 11:50:58 +00:00
vhost event: Shift subsystem initialization code to a separate library 2021-05-24 10:12:50 +00:00
Makefile app: exclude spdk_top from mingw cross builds 2021-03-03 08:16:54 +00:00