projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng_poll_mod calls compat_(e)poll_add
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
session.h
diff --git
a/src/bin/lttng-sessiond/session.h
b/src/bin/lttng-sessiond/session.h
index 82e409521c440c621f06d5d46a86d8cc380e6d6c..b008c967ec21b610651c5c4071842b236c2d2360 100644
(file)
--- a/
src/bin/lttng-sessiond/session.h
+++ b/
src/bin/lttng-sessiond/session.h
@@
-69,7
+69,9
@@
struct ltt_session_list {
*/
struct ltt_session {
char name[NAME_MAX];
*/
struct ltt_session {
char name[NAME_MAX];
+ bool has_auto_generated_name;
char hostname[HOST_NAME_MAX]; /* Local hostname. */
char hostname[HOST_NAME_MAX]; /* Local hostname. */
+ time_t creation_time;
struct ltt_kernel_session *kernel_session;
struct ltt_ust_session *ust_session;
struct urcu_ref ref;
struct ltt_kernel_session *kernel_session;
struct ltt_ust_session *ust_session;
struct urcu_ref ref;
@@
-100,7
+102,11
@@
struct ltt_session {
* copied into those sessions.
*/
struct consumer_output *consumer;
* copied into those sessions.
*/
struct consumer_output *consumer;
-
+ /*
+ * Indicates whether or not the user has specified an output directory
+ * or if it was configured using the default configuration.
+ */
+ bool has_user_specified_directory;
/* Did at least ONE start command has been triggered?. */
unsigned int has_been_started:1;
/*
/* Did at least ONE start command has been triggered?. */
unsigned int has_been_started:1;
/*
@@
-121,6
+127,12
@@
struct ltt_session {
* creation defaults.
*/
unsigned int snapshot_mode;
* creation defaults.
*/
unsigned int snapshot_mode;
+ /*
+ * A session that has channels that don't use 'mmap' output can't be
+ * used to capture snapshots. This is set to true whenever a
+ * 'splice' kernel channel is enabled.
+ */
+ bool has_non_mmap_channel;
/*
* Timer set when the session is created for live reading.
*/
/*
* Timer set when the session is created for live reading.
*/
@@
-216,8
+228,8
@@
struct ltt_session {
};
/* Prototypes */
};
/* Prototypes */
-int session_create(char *name, uid_t uid, gid_t gid);
-
+enum lttng_error_code session_create(const char *name, uid_t uid, gid_t gid,
+ struct ltt_session **out_session);
void session_lock(struct ltt_session *session);
void session_lock_list(void);
int session_trylock_list(void);
void session_lock(struct ltt_session *session);
void session_lock_list(void);
int session_trylock_list(void);
This page took
0.02384 seconds
and
4
git commands to generate.