2 * Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #include <lttng/lttng.h>
27 * Command value passed in the header.
29 enum lttcomm_agent_command
{
32 AGENT_CMD_DISABLE
= 3,
33 AGENT_CMD_REG_DONE
= 4, /* End registration process. */
37 * Return codes from the agent.
39 enum lttcomm_agent_ret_code
{
40 /* Success, assumed to be the first entry */
41 AGENT_RET_CODE_SUCCESS
= 1,
43 AGENT_RET_CODE_INVALID
= 2,
44 /* Unknown logger name */
45 AGENT_RET_CODE_UNKNOWN_NAME
= 3,
50 * Agent application communication header.
52 struct lttcomm_agent_hdr
{
53 uint64_t data_size
; /* data size following this header */
54 uint32_t cmd
; /* Enum of agent command. */
55 uint32_t cmd_version
; /* command version */
59 * Enable event command payload.
61 struct lttcomm_agent_enable
{
63 uint32_t loglevel_type
;
64 char name
[LTTNG_SYMBOL_NAME_LEN
];
68 * Disable event command payload.
70 struct lttcomm_agent_disable
{
71 char name
[LTTNG_SYMBOL_NAME_LEN
];
75 * Generic reply coming from the agent.
77 struct lttcomm_agent_generic_reply
{
82 * List command reply header.
84 struct lttcomm_agent_list_reply_hdr
{
90 * List command reply payload coming from the agent.
92 struct lttcomm_agent_list_reply
{
94 /* List of event name each of them ending by a NULL byte. */
98 #endif /* AGENT_COMM */