projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
License header fixes
[lttng-tools.git]
/
src
/
common
/
sessiond-comm
/
sessiond-comm.h
diff --git
a/src/common/sessiond-comm/sessiond-comm.h
b/src/common/sessiond-comm/sessiond-comm.h
index 10748bbfa29b5495dfc09ddca6538290a804b4e9..dd673d8246169a1453eefa4402b66f14c17fba68 100644
(file)
--- a/
src/common/sessiond-comm/sessiond-comm.h
+++ b/
src/common/sessiond-comm/sessiond-comm.h
@@
-3,18
+3,18
@@
* Julien Desfossez <julien.desfossez@polymtl.ca>
* Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Julien Desfossez <julien.desfossez@polymtl.ca>
* Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
- * This program is free software; you can redistribute it and/or modify
it
- *
under the terms of the GNU General Public License as published by the Free
- *
Software Foundation; only version 2 of the License
.
+ * This program is free software; you can redistribute it and/or modify
+ *
it under the terms of the GNU General Public License, version 2 only,
+ *
as published by the Free Software Foundation
.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for
* more details.
*
* more details.
*
- * You should have received a copy of the GNU General Public License along
with
- *
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- *
Place - Suite 330, Boston, MA 02111-1307,
USA.
+ * You should have received a copy of the GNU General Public License along
+ *
with this program; if not, write to the Free Software Foundation, Inc.,
+ *
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
*/
/*
*/
/*
@@
-28,7
+28,7
@@
#define _GNU_SOURCE
#include <limits.h>
#include <lttng/lttng.h>
#define _GNU_SOURCE
#include <limits.h>
#include <lttng/lttng.h>
-#include <
sys
/socket.h>
+#include <
common/compat
/socket.h>
/* Queue size of listen(2) */
#define LTTNG_SESSIOND_COMM_MAX_LISTEN 64
/* Queue size of listen(2) */
#define LTTNG_SESSIOND_COMM_MAX_LISTEN 64
@@
-75,7
+75,7
@@
enum lttcomm_return_code {
LTTCOMM_UNKNOWN_DOMAIN, /* Tracing domain not known */
LTTCOMM_ALLOC_FAIL, /* Trace allocation fail */
LTTCOMM_NO_SESSION, /* No session found */
LTTCOMM_UNKNOWN_DOMAIN, /* Tracing domain not known */
LTTCOMM_ALLOC_FAIL, /* Trace allocation fail */
LTTCOMM_NO_SESSION, /* No session found */
- LTTCOMM_CREATE_
FAIL, /* Create trace
fail */
+ LTTCOMM_CREATE_
DIR_FAIL, /* Create directory
fail */
LTTCOMM_SESSION_FAIL, /* Create session fail */
LTTCOMM_START_FAIL, /* Start tracing fail */
LTTCOMM_STOP_FAIL, /* Stop tracing fail */
LTTCOMM_SESSION_FAIL, /* Create session fail */
LTTCOMM_START_FAIL, /* Start tracing fail */
LTTCOMM_STOP_FAIL, /* Stop tracing fail */
@@
-92,6
+92,7
@@
enum lttcomm_return_code {
LTTCOMM_APP_NOT_FOUND, /* App not found in traceable app list */
LTTCOMM_EPERM, /* Permission denied */
LTTCOMM_KERN_NA, /* Kernel tracer unavalable */
LTTCOMM_APP_NOT_FOUND, /* App not found in traceable app list */
LTTCOMM_EPERM, /* Permission denied */
LTTCOMM_KERN_NA, /* Kernel tracer unavalable */
+ LTTCOMM_KERN_VERSION, /* Kernel tracer version is not compatible */
LTTCOMM_KERN_EVENT_EXIST, /* Kernel event already exists */
LTTCOMM_KERN_SESS_FAIL, /* Kernel create session failed */
LTTCOMM_KERN_CHAN_FAIL, /* Kernel create channel failed */
LTTCOMM_KERN_EVENT_EXIST, /* Kernel event already exists */
LTTCOMM_KERN_SESS_FAIL, /* Kernel create session failed */
LTTCOMM_KERN_CHAN_FAIL, /* Kernel create channel failed */
@@
-110,6
+111,8
@@
enum lttcomm_return_code {
LTTCOMM_KERN_DIR_EXIST, /* Kernel trace directory exist */
LTTCOMM_KERN_NO_SESSION, /* No kernel session found */
LTTCOMM_KERN_LIST_FAIL, /* Kernel listing events failed */
LTTCOMM_KERN_DIR_EXIST, /* Kernel trace directory exist */
LTTCOMM_KERN_NO_SESSION, /* No kernel session found */
LTTCOMM_KERN_LIST_FAIL, /* Kernel listing events failed */
+ LTTCOMM_UST_CALIBRATE_FAIL, /* UST calibration failed */
+ LTTCOMM_UST_VERSION, /* UST tracer version is not compatible */
LTTCOMM_UST_SESS_FAIL, /* UST create session failed */
LTTCOMM_UST_CHAN_EXIST, /* UST channel already exist */
LTTCOMM_UST_CHAN_FAIL, /* UST create channel failed */
LTTCOMM_UST_SESS_FAIL, /* UST create session failed */
LTTCOMM_UST_CHAN_EXIST, /* UST channel already exist */
LTTCOMM_UST_CHAN_FAIL, /* UST create channel failed */
@@
-132,6
+135,10
@@
enum lttcomm_return_code {
LTTCOMM_UST_EVENT_EXIST, /* UST event exist */
LTTCOMM_UST_EVENT_NOT_FOUND, /* UST event not found */
LTTCOMM_UST_CONTEXT_EXIST, /* UST context exist */
LTTCOMM_UST_EVENT_EXIST, /* UST event exist */
LTTCOMM_UST_EVENT_NOT_FOUND, /* UST event not found */
LTTCOMM_UST_CONTEXT_EXIST, /* UST context exist */
+ LTTCOMM_UST_CONTEXT_INVAL, /* UST context invalid */
+ LTTCOMM_NEED_ROOT_SESSIOND, /* root sessiond is needed */
+ LTTCOMM_TRACE_ALREADY_STARTED, /* Tracing already started */
+ LTTCOMM_TRACE_ALREADY_STOPPED, /* Tracing already stopped */
CONSUMERD_COMMAND_SOCK_READY, /* when consumerd command socket ready */
CONSUMERD_SUCCESS_RECV_FD, /* success on receiving fds */
CONSUMERD_COMMAND_SOCK_READY, /* when consumerd command socket ready */
CONSUMERD_SUCCESS_RECV_FD, /* success on receiving fds */
@@
-147,6
+154,8
@@
enum lttcomm_return_code {
CONSUMERD_SPLICE_EINVAL, /* EINVAL from splice(2) */
CONSUMERD_SPLICE_ENOMEM, /* ENOMEM from splice(2) */
CONSUMERD_SPLICE_ESPIPE, /* ESPIPE from splice(2) */
CONSUMERD_SPLICE_EINVAL, /* EINVAL from splice(2) */
CONSUMERD_SPLICE_ENOMEM, /* ENOMEM from splice(2) */
CONSUMERD_SPLICE_ESPIPE, /* ESPIPE from splice(2) */
+ LTTCOMM_INVALID, /* Invalid parameter */
+
/* MUST be last element */
LTTCOMM_NR, /* Last element */
};
/* MUST be last element */
LTTCOMM_NR, /* Last element */
};
@@
-287,7
+296,7
@@
extern ssize_t lttcomm_send_unix_sock(int sock, void *buf, size_t len);
extern ssize_t lttcomm_send_creds_unix_sock(int sock, void *buf, size_t len);
extern ssize_t lttcomm_recv_creds_unix_sock(int sock, void *buf, size_t len,
extern ssize_t lttcomm_send_creds_unix_sock(int sock, void *buf, size_t len);
extern ssize_t lttcomm_recv_creds_unix_sock(int sock, void *buf, size_t len,
-
struct u
cred *creds);
+
lttng_sock_
cred *creds);
extern const char *lttcomm_get_readable_code(enum lttcomm_return_code code);
extern int lttcomm_setsockopt_creds_unix_sock(int sock);
extern const char *lttcomm_get_readable_code(enum lttcomm_return_code code);
extern int lttcomm_setsockopt_creds_unix_sock(int sock);
This page took
0.025446 seconds
and
4
git commands to generate.