struct ltt_session {
char name[NAME_MAX];
bool has_auto_generated_name;
+ bool name_contains_creation_time;
char hostname[HOST_NAME_MAX]; /* Local hostname. */
time_t creation_time;
struct ltt_kernel_session *kernel_session;
char *last_archived_chunk_name;
LTTNG_OPTIONAL(uint64_t) last_archived_chunk_id;
struct lttng_dynamic_array destroy_notifiers;
+ /* Session base path override. Set non-null. */
+ char *base_path;
};
/* Prototypes */
enum lttng_error_code session_create(const char *name, uid_t uid, gid_t gid,
- struct ltt_session **out_session);
+ const char *base_path, struct ltt_session **out_session);
void session_lock(struct ltt_session *session);
void session_lock_list(void);
int session_trylock_list(void);