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 pass in the header.
29 enum lttcomm_jul_command
{
36 * Return code from the Java agent.
38 enum lttcomm_jul_ret_code
{
39 JUL_RET_CODE_SUCCESS
= 1,
40 JUL_RET_CODE_INVALID
= 2,
41 JUL_RET_CODE_UNKNOWN_NAME
= 3,
45 * JUL application communication header.
47 struct lttcomm_jul_hdr
{
48 uint64_t data_size
; /* data size following this header */
49 uint32_t cmd
; /* Enum of JUL command. */
50 uint32_t cmd_version
; /* command version */
54 * Enable event command payload.
56 struct lttcomm_jul_enable
{
57 char name
[LTTNG_SYMBOL_NAME_LEN
];
61 * Disable event command payload.
63 struct lttcomm_jul_disable
{
64 char name
[LTTNG_SYMBOL_NAME_LEN
];
68 * Generic reply coming from the Java Agent.
70 struct lttcomm_jul_generic_reply
{
75 * List command reply header.
77 struct lttcomm_jul_list_reply_hdr
{
83 * List command reply payload coming from the Java Agent.
85 struct lttcomm_jul_list_reply
{
87 /* List of event name each of them ending by a NULL byte. */
91 #endif /* _JUL_COMM */