RELAYD_STREAMS_SENT = 16,
/* Ask the relay to reset the metadata trace file (2.8+) */
RELAYD_RESET_METADATA = 17,
- RELAYD_ROTATE = 18,
+ /* Ask the relay to rotate a stream file (2.11+) */
+ RELAYD_ROTATE_STREAM = 18,
+ /* Rename a chunk after the rotation is completed (2.11+) */
+ RELAYD_ROTATE_RENAME = 19,
};
/*
uint64_t relayd_id; /* Relayd id if apply. */
uint64_t key;
} LTTNG_PACKED rotate_channel;
+ struct {
+ char current_path[PATH_MAX];
+ char new_path[PATH_MAX];
+ uint64_t relayd_id; /* Relayd id if apply. */
+ uint64_t session_id;
+ uint32_t create; /* Create new_path before move. */
+ uint32_t uid;
+ uint32_t gid;
+ } LTTNG_PACKED rotate_rename;
} u;
} LTTNG_PACKED;