Extend API and remove lttng_uri from lttng.h
authorDavid Goulet <dgoulet@efficios.com>
Tue, 7 Aug 2012 19:47:19 +0000 (15:47 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 14 Aug 2012 20:57:26 +0000 (16:57 -0400)
commita4b92340642035d1eafeb1eead0ad01f64d2007d
treef27e6d20e338d6e66694b87191201939ca4f3ccf
parenteb4a2943f0cf59f2f33627c4fa6ed79300119328
Extend API and remove lttng_uri from lttng.h

This is a big commit but actually not adding much.

First, struct lttng_uri is removed from lttng.h and replaced by calls
using string URL. The lttng_set_consumer_url is changed to "_url" taking
an handle, a control and a data string URL. You can find the definition
in proposal doc/proposals/0004-lttng-address-api.txt.

The lttng_create_session_uri is removed and the path from the original
lttng_create_session is now used to either pass a local filesystem full
path or a string URL.

Multiple fixes in uri_parse() also especially for IPv6 where address
MUST be enclosed in brackets [] in the string representation.

The help of lttng create and enable-consumer is updated and improved.

Also, the enable-consumer command can now be used without a domain
switch (-u/-k) so the destination URL is set to the global tracing
session and on both UST and kernel session if there is an existing
consumer.

Signed-off-by: David Goulet <dgoulet@efficios.com>
31 files changed:
include/lttng/lttng.h
src/bin/lttng-sessiond/consumer.c
src/bin/lttng-sessiond/consumer.h
src/bin/lttng-sessiond/kernel.c
src/bin/lttng-sessiond/kernel.h
src/bin/lttng-sessiond/main.c
src/bin/lttng-sessiond/session.c
src/bin/lttng-sessiond/session.h
src/bin/lttng-sessiond/trace-kernel.c
src/bin/lttng-sessiond/trace-kernel.h
src/bin/lttng-sessiond/trace-ust.c
src/bin/lttng-sessiond/ust-app.c
src/bin/lttng-sessiond/ust-consumer.c
src/bin/lttng/commands/create.c
src/bin/lttng/commands/enable_consumer.c
src/common/Makefile.am
src/common/consumer.c
src/common/defaults.h
src/common/sessiond-comm/sessiond-comm.c
src/common/sessiond-comm/sessiond-comm.h
src/common/uri.c
src/common/uri.h
src/common/ust-consumer/ust-consumer.c
src/common/utils.c
src/common/utils.h
src/lib/lttng-ctl/Makefile.am
src/lib/lttng-ctl/lttng-ctl.c
tests/tools/Makefile.am
tests/tools/streaming/unit_tests.c
tests/tools/test_kernel_data_trace.c
tests/tools/test_sessions.c
This page took 0.031131 seconds and 4 git commands to generate.