xenstore: make memory report available via XS_CONTROL
authorJuergen Gross <jgross@suse.com>
Fri, 24 Feb 2017 06:21:44 +0000 (07:21 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 28 Feb 2017 10:45:30 +0000 (10:45 +0000)
commit27816a2eda7a2c6041003abe6c5af37d8b88bc69
tree8f8fcad2cf205a8720b1bdb3a7a380e3b4870178
parent701a21876d359ebfd61d7641923e2d92cc75e06a
xenstore: make memory report available via XS_CONTROL

Add a XS_CONTROL command to xenstored for doing a talloc report to a
file. Right now this is supported by specifying a command line option
when starting xenstored and sending a signal to the daemon to trigger
the report.

To dump the report to the standard log file call:

xenstore-control memreport

To dump the report to a new file call:

xenstore-control memreport <file>

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/xenstored_control.c
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_core.h