numam-spdk/lib/trace
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
..
rpc lib/trace: add 3 RPC method for tpoint_group_mask 2018-12-14 21:29:12 +00:00
Makefile lib/trace: add 3 RPC method for tpoint_group_mask 2018-12-14 21:29:12 +00:00
trace_flags.c lib/trace: add 3 RPC method for tpoint_group_mask 2018-12-14 21:29:12 +00:00
trace.c lib/trace: add trace_record tool 2019-01-30 06:36:25 +00:00