projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng.c: show man page with --help and remove usage
[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..bdf0570366061c1691745a0a08c5ba4ceb5cc77e 100644
(file)
--- a/
src/bin/lttng-sessiond/snapshot.h
+++ b/
src/bin/lttng-sessiond/snapshot.h
@@
-32,10
+32,18
@@
struct consumer_output;
struct snapshot_output {
uint32_t id;
uint64_t max_size;
struct snapshot_output {
uint32_t id;
uint64_t max_size;
+ /* Number of snapshot taken with that output. */
+ uint64_t nb_snapshot;
char name[NAME_MAX];
struct consumer_output *consumer;
int kernel_sockets_copied;
int ust_sockets_copied;
char name[NAME_MAX];
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;
@@
-44,6
+52,11
@@
struct snapshot_output {
struct snapshot {
unsigned long next_output_id;
size_t nb_output;
struct snapshot {
unsigned long next_output_id;
size_t nb_output;
+ /*
+ * Number of snapshot taken for that object. This value is used with a
+ * temporary output of a snapshot record.
+ */
+ uint64_t nb_snapshot;
struct lttng_ht *output_ht;
};
struct lttng_ht *output_ht;
};
@@
-63,7
+76,13
@@
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);
+struct snapshot_output *snapshot_find_output_by_name(const char *name,
+ struct snapshot *snapshot);
#endif /* SNAPSHOT_H */
#endif /* SNAPSHOT_H */
This page took
0.0257 seconds
and
5
git commands to generate.