projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: move session saving of K(ret)probe and function tracing to dedicated functions
[lttng-tools.git]
/
src
/
common
/
sessiond-comm
/
agent.h
diff --git
a/src/common/sessiond-comm/agent.h
b/src/common/sessiond-comm/agent.h
index b562b7402baaf6c9d5ec88ce50544e73b7514524..11acc52f9206cead181383771830ee2a9f9535c3 100644
(file)
--- a/
src/common/sessiond-comm/agent.h
+++ b/
src/common/sessiond-comm/agent.h
@@
-1,5
+1,6
@@
/*
* Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
/*
* Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
+ * Copyright (C) 2016 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
* 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
*
* 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
@@
-18,7
+19,6
@@
#ifndef AGENT_COMM
#define AGENT_COMM
#ifndef AGENT_COMM
#define AGENT_COMM
-#define _GNU_SOURCE
#include <stdint.h>
#include <lttng/lttng.h>
#include <stdint.h>
#include <lttng/lttng.h>
@@
-27,10
+27,12
@@
* Command value passed in the header.
*/
enum lttcomm_agent_command {
* Command value passed in the header.
*/
enum lttcomm_agent_command {
- AGENT_CMD_LIST = 1,
- AGENT_CMD_ENABLE = 2,
- AGENT_CMD_DISABLE = 3,
- AGENT_CMD_REG_DONE = 4, /* End registration process. */
+ AGENT_CMD_LIST = 1,
+ AGENT_CMD_ENABLE = 2,
+ AGENT_CMD_DISABLE = 3,
+ AGENT_CMD_REG_DONE = 4, /* End registration process. */
+ AGENT_CMD_APP_CTX_ENABLE = 5,
+ AGENT_CMD_APP_CTX_DISABLE = 6,
};
/*
};
/*
@@
-38,11
+40,11
@@
enum lttcomm_agent_command {
*/
enum lttcomm_agent_ret_code {
/* Success, assumed to be the first entry */
*/
enum lttcomm_agent_ret_code {
/* Success, assumed to be the first entry */
- AGENT_RET_CODE_SUCCESS = 1,
+ AGENT_RET_CODE_SUCCESS
= 1,
/* Invalid command */
/* Invalid command */
- AGENT_RET_CODE_INVALID = 2,
+ AGENT_RET_CODE_INVALID
= 2,
/* Unknown logger name */
/* Unknown logger name */
- AGENT_RET_CODE_UNKNOWN_NAME = 3,
+ AGENT_RET_CODE_UNKNOWN_NAME
= 3,
AGENT_RET_CODE_NR,
};
AGENT_RET_CODE_NR,
};
@@
-56,18
+58,20
@@
struct lttcomm_agent_hdr {
} LTTNG_PACKED;
/*
} LTTNG_PACKED;
/*
- * Enable event command payload.
+ * Enable event command payload. Will be immediately followed by the
+ * variable-length string representing the filter expression.
*/
*/
-struct lttcomm_agent_enable {
- uint32_t loglevel;
+struct lttcomm_agent_enable
_event
{
+ uint32_t loglevel
_value
;
uint32_t loglevel_type;
char name[LTTNG_SYMBOL_NAME_LEN];
uint32_t loglevel_type;
char name[LTTNG_SYMBOL_NAME_LEN];
+ uint32_t filter_expression_length;
} LTTNG_PACKED;
/*
* Disable event command payload.
*/
} LTTNG_PACKED;
/*
* Disable event command payload.
*/
-struct lttcomm_agent_disable {
+struct lttcomm_agent_disable
_event
{
char name[LTTNG_SYMBOL_NAME_LEN];
} LTTNG_PACKED;
char name[LTTNG_SYMBOL_NAME_LEN];
} LTTNG_PACKED;
This page took
0.025153 seconds
and
4
git commands to generate.