projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add UST snapshot support
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
snapshot.c
diff --git
a/src/bin/lttng-sessiond/snapshot.c
b/src/bin/lttng-sessiond/snapshot.c
index 77255fa2c597f0440e72e8585be486c64e6ef369..b14a398c343ba58d2cab3a50b726f2d33475b515 100644
(file)
--- a/
src/bin/lttng-sessiond/snapshot.c
+++ b/
src/bin/lttng-sessiond/snapshot.c
@@
-49,13
+49,16
@@
int snapshot_output_init(uint64_t max_size, const char *name,
assert(output);
assert(output);
+ DBG2("Snapshot output initializing with max size %" PRIu64 ", name %s "
+ "ctrl URL %s, data URL %s", max_size, name, ctrl_url, data_url);
+
output->max_size = max_size;
if (snapshot) {
output->id = get_next_output_id(snapshot);
}
lttng_ht_node_init_ulong(&output->node, (unsigned long) output->id);
output->max_size = max_size;
if (snapshot) {
output->id = get_next_output_id(snapshot);
}
lttng_ht_node_init_ulong(&output->node, (unsigned long) output->id);
- if (name) {
+ if (name
&& name[0] != '\0'
) {
strncpy(output->name, name, sizeof(output->name));
} else {
/* Set default name. */
strncpy(output->name, name, sizeof(output->name));
} else {
/* Set default name. */
@@
-211,11
+214,6
@@
error:
return output;
}
return output;
}
-struct snapshot *snapshot_alloc(void)
-{
- return zmalloc(sizeof(struct snapshot));
-}
-
/*
* Initialized a snapshot object that was already allocated.
*
/*
* Initialized a snapshot object that was already allocated.
*
This page took
0.023186 seconds
and
4
git commands to generate.