numam-spdk/app
Liu Xiaodong a206234d09 lib/trace: add trace_record tool
trace_record is used to poll the spdk trace shm file
and store new entries from it to another specified trace file.
This could help retain the trace_entires from the overlay of
trace circular buffer

Note:
* trace_record reads the input tracefile into a process-local
memory and writes trace entries to the output file only at shutdown.
* trace_record can be shut down on SIGINT or SIGTERM signal.

A usage sample is:
./spdk_trace_record -s bdev_svc -p <spdk app pid> -f trace.tmp -q

Change-Id: If073a05022ec9c1b45923c38ba407a873be8741b
Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/433385
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-01-30 06:36:25 +00:00
..
iscsi_tgt app: Fix spelling error in iscsi_tgt.c 2019-01-24 10:52:31 +00:00
iscsi_top build: add mk/spdk.app_cxx.mk 2018-12-11 18:07:53 +00:00
nvmf_tgt parse: add return value to app_parse callback 2019-01-18 10:08:09 +00:00
spdk_tgt app/parse: add default return value for app parse function 2019-01-22 01:03:39 +00:00
trace app/trace: print error messages when input file is corrupted 2019-01-28 02:33:50 +00:00
trace_record lib/trace: add trace_record tool 2019-01-30 06:36:25 +00:00
vhost app/parse: add default return value for app parse function 2019-01-22 01:03:39 +00:00
Makefile lib/trace: add trace_record tool 2019-01-30 06:36:25 +00:00