projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng-view: clean-up: remove commented and unused references to lttv
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
stream.h
diff --git
a/src/bin/lttng-relayd/stream.h
b/src/bin/lttng-relayd/stream.h
index b8d14ecfb8cb0d07b40553456bc0fae86a7d5f4e..ec56fe2facdf8979d75409a60542d0319b77aee8 100644
(file)
--- a/
src/bin/lttng-relayd/stream.h
+++ b/
src/bin/lttng-relayd/stream.h
@@
-31,7
+31,6
@@
#include <common/buffer-view.h>
#include "session.h"
#include <common/buffer-view.h>
#include "session.h"
-#include "stream-fd.h"
#include "tracefile-array.h"
struct lttcomm_relayd_index;
#include "tracefile-array.h"
struct lttcomm_relayd_index;
@@
-44,10
+43,15
@@
struct relay_stream_rotation {
bool data_rotated;
bool index_rotated;
/*
bool data_rotated;
bool index_rotated;
/*
- *
Sequence number of the first packet of the new trace chunk to which
- * the stream is rotating.
+ *
Packet sequence number of the first packet of the new trace chunk to
+ *
which
the stream is rotating.
*/
*/
- uint64_t seq_num;
+ uint64_t packet_seq_num;
+ /*
+ * Monotonically increasing previous network sequence number of first
+ * data packet of the new trace chunk to which the stream is rotating.
+ */
+ uint64_t prev_data_net_seq;
struct lttng_trace_chunk *next_trace_chunk;
};
struct lttng_trace_chunk *next_trace_chunk;
};
@@
-74,8
+78,7
@@
struct relay_stream {
/* seq num to encounter before closing. */
uint64_t last_net_seq_num;
/* seq num to encounter before closing. */
uint64_t last_net_seq_num;
- /* FD on which to write the stream data. */
- struct stream_fd *stream_fd;
+ struct fs_handle *file;
/* index file on which to write the index data. */
struct lttng_index_file *index_file;
/* index file on which to write the index data. */
struct lttng_index_file *index_file;
@@
-111,6
+114,12
@@
struct relay_stream {
*/
uint64_t index_received_seqcount;
*/
uint64_t index_received_seqcount;
+ /*
+ * Packet sequence number of the last received packet index.
+ * Only populated when interacting with CTF_INDEX 1.1+.
+ */
+ LTTNG_OPTIONAL(uint64_t) received_packet_seq_num;
+
/*
* Tracefile array is an index of the stream trace files,
* indexed by position. It allows keeping track of the oldest
/*
* Tracefile array is an index of the stream trace files,
* indexed by position. It allows keeping track of the oldest
@@
-164,6
+173,8
@@
struct relay_stream {
struct cds_list_head recv_node;
/* Protected by session lock. */
bool published;
struct cds_list_head recv_node;
/* Protected by session lock. */
bool published;
+ /* Notified viewer that no new metadata is available. */
+ bool no_new_metadata_notified;
/*
* Node of stream within global stream hash table.
*/
/*
* Node of stream within global stream hash table.
*/
This page took
0.02476 seconds
and
4
git commands to generate.