diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-10-18 17:37:50 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-10-18 17:37:50 +0100 |
commit | 4f42a4e74f157e0d9cbb3595b1cc7e215c917428 (patch) | |
tree | 79205000fd9261234c650591d5adf4d8ede3e41f /tools/libxc/xenctrl.h | |
parent | 656ba9748a4af226415bf77039a20a1948444445 (diff) | |
download | xen-4f42a4e74f157e0d9cbb3595b1cc7e215c917428.tar.gz xen-4f42a4e74f157e0d9cbb3595b1cc7e215c917428.tar.bz2 xen-4f42a4e74f157e0d9cbb3595b1cc7e215c917428.zip |
libxc: simplify lock profiling API
Current function has heavily overloaded semantics for the various
arguments. Separate out into more specific functions.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xenctrl.h')
-rw-r--r-- | tools/libxc/xenctrl.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index c004cbc660..4e9493c796 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -898,12 +898,14 @@ int xc_perfc_query(xc_interface *xch, xc_perfc_val_t *val); typedef xen_sysctl_lockprof_data_t xc_lockprof_data_t; +int xc_lockprof_reset(xc_interface *xch); +int xc_lockprof_query_number(xc_interface *xch, + uint32_t *n_elems); /* IMPORTANT: The caller is responsible for mlock()'ing the @data array. */ -int xc_lockprof_control(xc_interface *xch, - uint32_t opcode, - uint32_t *n_elems, - uint64_t *time, - xc_lockprof_data_t *data); +int xc_lockprof_query(xc_interface *xch, + uint32_t *n_elems, + uint64_t *time, + xc_lockprof_data_t *data); /** * Memory maps a range within one domain to a local address range. Mappings |