projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond: implement consumer clear channel
[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 bf594b5fe3f79d7cb3bd99cdd67afec2b483a9a5..12641860ad5c940b2e926b88fd2f121a08b3e739 100644
(file)
--- a/
src/bin/lttng-sessiond/snapshot.h
+++ b/
src/bin/lttng-sessiond/snapshot.h
@@
-28,10
+28,13
@@
#include "consumer.h"
struct consumer_output;
#include "consumer.h"
struct consumer_output;
+struct ltt_session;
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;
char name[NAME_MAX];
struct consumer_output *consumer;
int kernel_sockets_copied;
@@
-50,6
+53,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;
};
@@
-65,11
+73,19
@@
void snapshot_add_output(struct snapshot *snapshot,
/* Snapshot output object. */
struct snapshot_output *snapshot_output_alloc(void);
void snapshot_output_destroy(struct snapshot_output *obj);
/* Snapshot output object. */
struct snapshot_output *snapshot_output_alloc(void);
void snapshot_output_destroy(struct snapshot_output *obj);
-int snapshot_output_init(uint64_t max_size, const char *name,
+int snapshot_output_init(const struct ltt_session *session,
+ 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(const struct ltt_session *session,
+ 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.024863 seconds
and
4
git commands to generate.