2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 * Copyright (C) 2012 Alexandre Montplaisir <alexandre.montplaisir@polymtl.ca>
11 * This class implements the the Java side of the LTTng-UST Java interface.
13 * First, make sure you have installed "liblttng-ust-java.so" where the linker
14 * can find it. You can then call LTTngUst.init() from your Java program to
15 * connect the methods exposed here to the native library.
17 * Because of limitations in the probe declaration, all trace events generated
18 * by this library will have "lttng_ust_java" for domain, and "<type>_event" for
19 * event name in the CTF trace files. The "name" parameter will instead appear
20 * as the first element of the event's payload.
22 * @author Mathieu Desnoyers
23 * @author Alexandre Montplaisir
26 public abstract class LTTngUst
{
29 * Initialize the UST tracer. This should always be called first, before any
32 public static void init() {
33 System
.loadLibrary("lttng-ust-java"); //$NON-NLS-1$
37 * Insert a tracepoint with a payload of type Integer.
40 * The name assigned to this event. For best performance, this
41 * should be a statically-defined String, or a literal.
45 public static native void tracepointInt(String name
, int payload
);
48 * Insert a tracepoint with a payload consisting of two integers.
51 * The name assigned to this event. For best performance, this
52 * should be a statically-defined String, or a literal.
54 * The first int payload
56 * The second int payload
58 public static native void
59 tracepointIntInt(String name
, int payload1
, int payload2
);
62 * Insert a tracepoint with a payload of type Long
65 * The name assigned to this event. For best performance, this
66 * should be a statically-defined String, or a literal.
70 public static native void tracepointLong(String name
, long payload
);
73 * Insert a tracepoint with a payload consisting of two longs.
76 * The name assigned to this event. For best performance, this
77 * should be a statically-defined String, or a literal.
79 * The first long payload
81 * The second long payload
83 public static native void
84 tracepointLongLong(String name
, long payload1
, long payload2
);
87 * Insert a tracepoint with a String payload.
90 * The name assigned to this event. For best performance, this
91 * should be a statically-defined String, or a literal.
95 public static native void tracepointString(String name
, String payload
);
This page took 0.031374 seconds and 4 git commands to generate.