]> xenbits.xensource.com Git - xen.git/commit
libxenstat: honour XEN_RUN_DIR
authorWei Liu <wei.liu2@citrix.com>
Mon, 11 Jul 2016 17:28:08 +0000 (18:28 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 15 Aug 2016 10:19:21 +0000 (11:19 +0100)
commitab75cdf635da31012f822260c607f5b4ceaf7668
treee9646a6649ac579298b0d39c2701798bae49e368
parent78a30103813a7929e922de7414cc56fa2ae52984
libxenstat: honour XEN_RUN_DIR

This is because libxl uses XEN_RUN_DIR to generate the socket path for
libxenstat while libxenstat itself uses hard-coded path, which is not
necessarily the same path as XEN_RUN_DIR.  The default configuration
happened to work because XEN_RUN_DIR defaulted to /var/run/xen, which
matched the hard-coded path.

We should make libxenstat use XEN_RUN_DIR so that it works with
non-default configuration.

Generate a _paths.h because it is required to make this change work.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
(cherry picked from commit dedb221889dbdd96f1d3c1155c3eb492d329bb53)
.gitignore
tools/xenstat/libxenstat/Makefile
tools/xenstat/libxenstat/src/xenstat_qmp.c