Add Integer and Long tracepoint types to the Java interface
[lttng-ust.git] / liblttng-ust-java / lttng_ust_java.h
1 #undef TRACEPOINT_PROVIDER
2 #define TRACEPOINT_PROVIDER lttng_ust_java
3
4 #if !defined(_TRACEPOINT_LTTNG_UST_JAVA_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
5 #define _TRACEPOINT_LTTNG_UST_JAVA_H
6
7 /*
8 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; version 2.1 of
13 * the License.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */
24
25 #include <lttng/tracepoint.h>
26
27 TRACEPOINT_EVENT(lttng_ust_java, int_event,
28 TP_ARGS(const char *, name, int, payload),
29 TP_FIELDS(
30 ctf_string(name, name)
31 ctf_integer(int, int_payload, payload)
32 )
33 )
34
35 TRACEPOINT_EVENT(lttng_ust_java, long_event,
36 TP_ARGS(const char *, name, long, payload),
37 TP_FIELDS(
38 ctf_string(name, name)
39 ctf_integer(long, long_payload, payload)
40 )
41 )
42
43 TRACEPOINT_EVENT(lttng_ust_java, string_event,
44 TP_ARGS(const char *, name, const char *, payload),
45 TP_FIELDS(
46 ctf_string(name, name)
47 ctf_string(string_payload, payload)
48 )
49 )
50
51 #endif /* _TRACEPOINT_LTTNG_UST_JAVA_H */
52
53 #undef TRACEPOINT_INCLUDE_FILE
54 #define TRACEPOINT_INCLUDE_FILE ./lttng_ust_java.h
55
56 /* This part must be outside protection */
57 #include <lttng/tracepoint-event.h>
This page took 0.033032 seconds and 6 git commands to generate.