f4bea3242b5934a47596915120bc373b429978dd
2 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 * Copyright (C) 2012 Alexandre Montplaisir <alexandre.montplaisir@polymtl.ca>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; only
8 * version 2.1 of the License.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 package org
.lttng
.ust
;
23 * This class implements the the Java side of the LTTng-UST Java interface.
25 * First, make sure you have installed "liblttng-ust-java.so" where the linker
26 * can find it. You can then call LTTngUst.init() from your Java program to
27 * connect the methods exposed here to the native library.
29 * Because of limitations in the probe declaration, all trace events generated
30 * by this library will have "lttng_ust_java" for domain, and "<type>_event" for
31 * event name in the CTF trace files. The "name" parameter will instead appear
32 * as the first element of the event's payload.
34 * @author Mathieu Desnoyers
35 * @author Alexandre Montplaisir
38 public abstract class LTTngUst
{
41 * Initialize the UST tracer. This should always be called first, before any
44 public static void init() {
45 System
.loadLibrary("lttng-ust-java"); //$NON-NLS-1$
49 * Insert a tracepoint with a payload of type Integer.
52 * The name assigned to this event. For best performance, this
53 * should be a statically-defined String, or a literal.
57 public static native void tracepointInt(String name
, int payload
);
60 * Insert a tracepoint with a payload of type Long
63 * The name assigned to this event. For best performance, this
64 * should be a statically-defined String, or a literal.
68 public static native void tracepointLong(String name
, long payload
);
71 * Insert a tracepoint with a String payload.
74 * The name assigned to this event. For best performance, this
75 * should be a statically-defined String, or a literal.
79 public static native void tracepointString(String name
, String payload
);
This page took 0.032804 seconds and 5 git commands to generate.