projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add create session snapshot API in lttng-sessiond
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
snapshot.h
diff --git
a/src/bin/lttng-sessiond/snapshot.h
b/src/bin/lttng-sessiond/snapshot.h
index 91215272ac83f3316348c0c10ae098c6b26b5fbf..44d2ae7f5ba283039f9d9cb4ea9933834ad17af0 100644
(file)
--- a/
src/bin/lttng-sessiond/snapshot.h
+++ b/
src/bin/lttng-sessiond/snapshot.h
@@
-36,6
+36,12
@@
struct snapshot_output {
struct consumer_output *consumer;
int kernel_sockets_copied;
int ust_sockets_copied;
struct consumer_output *consumer;
int kernel_sockets_copied;
int ust_sockets_copied;
+ /*
+ * Contains the string with "<date>-<time>" for when the snapshot command
+ * is triggered. This is to make sure every streams will use the same time
+ * for the directory output.
+ */
+ char datetime[16];
/* Indexed by ID. */
struct lttng_ht_node_ulong node;
/* Indexed by ID. */
struct lttng_ht_node_ulong node;
@@
-63,6
+69,10
@@
int snapshot_output_init(uint64_t max_size, const char *name,
const char *ctrl_url, const char *data_url,
struct consumer_output *consumer, struct snapshot_output *output,
struct snapshot *snapshot);
const char *ctrl_url, const char *data_url,
struct consumer_output *consumer, struct snapshot_output *output,
struct snapshot *snapshot);
+int snapshot_output_init_with_uri(uint64_t max_size, const char *name,
+ struct lttng_uri *uris, size_t nb_uri,
+ struct consumer_output *consumer, struct snapshot_output *output,
+ struct snapshot *snapshot);
struct snapshot_output *snapshot_find_output_by_id(uint32_t id,
struct snapshot *snapshot);
struct snapshot_output *snapshot_find_output_by_id(uint32_t id,
struct snapshot *snapshot);
This page took
0.02649 seconds
and
4
git commands to generate.