aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-10-18 17:37:50 +0100
committerIan Campbell <ian.campbell@citrix.com>2010-10-18 17:37:50 +0100
commit4f42a4e74f157e0d9cbb3595b1cc7e215c917428 (patch)
tree79205000fd9261234c650591d5adf4d8ede3e41f /tools/misc
parent656ba9748a4af226415bf77039a20a1948444445 (diff)
downloadxen-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/misc')
-rw-r--r--tools/misc/xenlockprof.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/misc/xenlockprof.c b/tools/misc/xenlockprof.c
index e30fbaaf23..0235ab0150 100644
--- a/tools/misc/xenlockprof.c
+++ b/tools/misc/xenlockprof.c
@@ -60,8 +60,7 @@ int main(int argc, char *argv[])
if ( argc > 1 )
{
- if ( xc_lockprof_control(xc_handle, XEN_SYSCTL_LOCKPROF_reset, NULL,
- NULL, NULL) != 0 )
+ if ( xc_lockprof_reset(xc_handle) != 0 )
{
fprintf(stderr, "Error reseting profile data: %d (%s)\n",
errno, strerror(errno));
@@ -71,8 +70,7 @@ int main(int argc, char *argv[])
}
n = 0;
- if ( xc_lockprof_control(xc_handle, XEN_SYSCTL_LOCKPROF_query, &n,
- NULL, NULL) != 0 )
+ if ( xc_lockprof_query_number(xc_handle, &n) != 0 )
{
fprintf(stderr, "Error getting number of profile records: %d (%s)\n",
errno, strerror(errno));
@@ -89,8 +87,7 @@ int main(int argc, char *argv[])
}
i = n;
- if ( xc_lockprof_control(xc_handle, XEN_SYSCTL_LOCKPROF_query, &i,
- &time, data) != 0 )
+ if ( xc_lockprof_query(xc_handle, &i, &time, data) != 0 )
{
fprintf(stderr, "Error getting profile records: %d (%s)\n",
errno, strerror(errno));