projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
tracefile-array.hpp
diff --git
a/src/bin/lttng-relayd/tracefile-array.hpp
b/src/bin/lttng-relayd/tracefile-array.hpp
index 09c425fad43267f96e40b30063e28ebdf95159df..25b228016219ace106080b4b814b6c7d650b4695 100644
(file)
--- a/
src/bin/lttng-relayd/tracefile-array.hpp
+++ b/
src/bin/lttng-relayd/tracefile-array.hpp
@@
-8,15
+8,15
@@
*
*/
*
*/
-#include <limits.h>
#include <inttypes.h>
#include <inttypes.h>
+#include <limits.h>
#include <pthread.h>
#include <stdbool.h>
struct tracefile {
/* Per-tracefile head/tail seq. */
#include <pthread.h>
#include <stdbool.h>
struct tracefile {
/* Per-tracefile head/tail seq. */
- uint64_t seq_head;
/* Newest seqcount. Inclusive. */
- uint64_t seq_tail;
/* Oldest seqcount. Inclusive. */
+ uint64_t seq_head; /* Newest seqcount. Inclusive. */
+ uint64_t seq_tail; /* Oldest seqcount. Inclusive. */
};
enum tracefile_rotate_type {
};
enum tracefile_rotate_type {
@@
-54,8
+54,7
@@
struct tracefile_array *tracefile_array_create(size_t count);
void tracefile_array_destroy(struct tracefile_array *tfa);
void tracefile_array_file_rotate(struct tracefile_array *tfa, enum tracefile_rotate_type type);
void tracefile_array_destroy(struct tracefile_array *tfa);
void tracefile_array_file_rotate(struct tracefile_array *tfa, enum tracefile_rotate_type type);
-void tracefile_array_commit_seq(struct tracefile_array *tfa,
- uint64_t new_seq_head);
+void tracefile_array_commit_seq(struct tracefile_array *tfa, uint64_t new_seq_head);
void tracefile_array_reset(struct tracefile_array *tfa);
uint64_t tracefile_array_get_read_file_index_head(struct tracefile_array *tfa);
void tracefile_array_reset(struct tracefile_array *tfa);
uint64_t tracefile_array_get_read_file_index_head(struct tracefile_array *tfa);
@@
-66,7
+65,6
@@
uint64_t tracefile_array_get_file_index_tail(struct tracefile_array *tfa);
/* May return -1ULL in the case where we have not received any indexes yet. */
uint64_t tracefile_array_get_seq_tail(struct tracefile_array *tfa);
/* May return -1ULL in the case where we have not received any indexes yet. */
uint64_t tracefile_array_get_seq_tail(struct tracefile_array *tfa);
-bool tracefile_array_seq_in_file(struct tracefile_array *tfa,
- uint64_t file_index, uint64_t seq);
+bool tracefile_array_seq_in_file(struct tracefile_array *tfa, uint64_t file_index, uint64_t seq);
#endif /* _STREAM_H */
#endif /* _STREAM_H */
This page took
0.023761 seconds
and
4
git commands to generate.