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
..
2019-01-28 19:24:13 +00:00
2019-01-30 06:36:25 +00:00
2019-01-29 06:51:46 +00:00
2019-01-29 17:44:12 +00:00
2018-11-28 22:55:09 +00:00
2018-08-24 17:15:12 +00:00
2019-01-29 17:39:18 +00:00
2018-12-05 00:35:35 +00:00
2019-01-30 06:36:25 +00:00
2019-01-11 09:15:39 +00:00