projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
[babeltrace.git]
/
formats
/
lttng-live
/
lttng-live-plugin.c
diff --git
a/formats/lttng-live/lttng-live-plugin.c
b/formats/lttng-live/lttng-live-plugin.c
index 771801ce9c655d59bac690fd6b0e34863dd54105..f2c7536ec0d4e6223f21d68985fa9fcbb0665b3b 100644
(file)
--- a/
formats/lttng-live/lttng-live-plugin.c
+++ b/
formats/lttng-live/lttng-live-plugin.c
@@
-41,6
+41,14
@@
static volatile int should_quit;
static volatile int should_quit;
+void bt_lttng_live_hook(void)
+{
+ /*
+ * Dummy function to prevent the linker from discarding this format as
+ * "unused" in static builds.
+ */
+}
+
int lttng_live_should_quit(void)
{
return should_quit;
int lttng_live_should_quit(void)
{
return should_quit;
@@
-119,6
+127,10
@@
int parse_url(const char *path, struct lttng_live_ctx *ctx)
if (proto_offset > path_len) {
goto end;
}
if (proto_offset > path_len) {
goto end;
}
+ if (proto == 6) {
+ fprintf(stderr, "[error] IPv6 is currently unsupported by lttng-live\n");
+ goto end;
+ }
/* TODO : parse for IPv6 as well */
/* Parse the hostname or IP */
ret = sscanf(&path[proto_offset], "%[a-zA-Z.0-9%-]%s",
/* TODO : parse for IPv6 as well */
/* Parse the hostname or IP */
ret = sscanf(&path[proto_offset], "%[a-zA-Z.0-9%-]%s",
@@
-328,7
+340,7
@@
void __attribute__((constructor)) lttng_live_init(void)
{
int ret;
{
int ret;
- lttng_live_format.name = g_quark_from_st
atic_st
ring("lttng-live");
+ lttng_live_format.name = g_quark_from_string("lttng-live");
ret = bt_register_format(<tng_live_format);
assert(!ret);
}
ret = bt_register_format(<tng_live_format);
assert(!ret);
}
This page took
0.02481 seconds
and
4
git commands to generate.