Fix: pass private data to context callbacks
[lttng-ust.git] / liblttng-ust-java / lttng_ust_java.h
CommitLineData
c0c0989a
MJ
1/*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
a4ada9b8
MD
7#undef TRACEPOINT_PROVIDER
8#define TRACEPOINT_PROVIDER lttng_ust_java
2b6f8df9 9
a4ada9b8
MD
10#if !defined(_TRACEPOINT_LTTNG_UST_JAVA_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11#define _TRACEPOINT_LTTNG_UST_JAVA_H
2b6f8df9 12
2ac85198 13#include <lttng/tracepoint.h>
2b6f8df9 14
14d1b9ce
AM
15TRACEPOINT_EVENT(lttng_ust_java, int_event,
16 TP_ARGS(const char *, name, int, payload),
2b6f8df9
MD
17 TP_FIELDS(
18 ctf_string(name, name)
14d1b9ce
AM
19 ctf_integer(int, int_payload, payload)
20 )
21)
22
071f1d0b
AM
23TRACEPOINT_EVENT(lttng_ust_java, int_int_event,
24 TP_ARGS(const char *, name, int, payload1, int, payload2),
25 TP_FIELDS(
26 ctf_string(name, name)
27 ctf_integer(int, int_payload1, payload1)
28 ctf_integer(int, int_payload2, payload2)
29 )
30)
31
14d1b9ce
AM
32TRACEPOINT_EVENT(lttng_ust_java, long_event,
33 TP_ARGS(const char *, name, long, payload),
34 TP_FIELDS(
35 ctf_string(name, name)
36 ctf_integer(long, long_payload, payload)
37 )
38)
39
071f1d0b
AM
40TRACEPOINT_EVENT(lttng_ust_java, long_long_event,
41 TP_ARGS(const char *, name, long, payload1, long, payload2),
42 TP_FIELDS(
43 ctf_string(name, name)
44 ctf_integer(long, long_payload1, payload1)
45 ctf_integer(long, long_payload2, payload2)
46 )
47)
48
14d1b9ce
AM
49TRACEPOINT_EVENT(lttng_ust_java, string_event,
50 TP_ARGS(const char *, name, const char *, payload),
51 TP_FIELDS(
52 ctf_string(name, name)
53 ctf_string(string_payload, payload)
2b6f8df9
MD
54 )
55)
56
a4ada9b8 57#endif /* _TRACEPOINT_LTTNG_UST_JAVA_H */
2b6f8df9 58
45f399e8
MD
59#undef TRACEPOINT_INCLUDE
60#define TRACEPOINT_INCLUDE "./lttng_ust_java.h"
2b6f8df9
MD
61
62/* This part must be outside protection */
2ac85198 63#include <lttng/tracepoint-event.h>
This page took 0.032413 seconds and 4 git commands to generate.