From: Mathieu Desnoyers Date: Sun, 23 Oct 2011 23:48:41 +0000 (-0400) Subject: change start/stop session parameters X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4a6ca0580b89f57b5c765bace547f70d619c4e9d;p=ust.git change start/stop session parameters Signed-off-by: Mathieu Desnoyers --- diff --git a/include/ust/lttng-ust-ctl.h b/include/ust/lttng-ust-ctl.h index 6818490..e05d95b 100644 --- a/include/ust/lttng-ust-ctl.h +++ b/include/ust/lttng-ust-ctl.h @@ -60,8 +60,8 @@ int ustctl_add_context(int sock, struct lttng_ust_context *ctx, int ustctl_enable(int sock, struct object_data *object); int ustctl_disable(int sock, struct object_data *object); -int ustctl_start_session(int sock, struct object_data *object); -int ustctl_stop_session(int sock, struct object_data *object); +int ustctl_start_session(int sock, int handle); +int ustctl_stop_session(int sock, int handle); int ustctl_tracepoint_list(int sock); /* not implemented yet */ int ustctl_tracer_version(int sock, struct lttng_ust_tracer_version *v); diff --git a/libustctl/ustctl.c b/libustctl/ustctl.c index 5035764..27ba0e5 100644 --- a/libustctl/ustctl.c +++ b/libustctl/ustctl.c @@ -352,14 +352,20 @@ int ustctl_disable(int sock, struct object_data *object) return 0; } -int ustctl_start_session(int sock, struct object_data *object) +int ustctl_start_session(int sock, int handle) { - return ustctl_enable(sock, object); + struct object_data obj; + + obj.handle = handle; + return ustctl_enable(sock, &obj); } -int ustctl_stop_session(int sock, struct object_data *object) +int ustctl_stop_session(int sock, int handle) { - return ustctl_disable(sock, object); + struct object_data obj; + + obj.handle = handle; + return ustctl_disable(sock, &obj); }