numam-spdk/lib/event
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 event/rpc: Use spdk_strtol to clarify if signal is specified by name 2019-01-29 17:39:18 +00:00
subsystems nvmf: remove deprecated construct_nvmf_subsystem RPC 2019-01-30 00:48:23 +00:00
app.c lib/trace: add trace_record tool 2019-01-30 06:36:25 +00:00
json_config.c json_config: dont dereference when no next config entry 2019-01-22 19:21:46 +00:00
json_config.h app: add option to read json configuration files during startup 2019-01-14 04:48:18 +00:00
Makefile app: add option to read json configuration files during startup 2019-01-14 04:48:18 +00:00
reactor.c thread: Rename spdk_free_thread to spdk_thread_exit 2019-01-17 11:24:38 +00:00
rpc.c thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
subsystem.c event: allow subsystem to write configuration in async way 2018-03-27 02:57:28 -04:00