2 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; only
7 * version 2.1 of the License.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 #include "org_lttng_ust_LTTngUst.h"
21 #define TRACEPOINT_DEFINE
22 #define TRACEPOINT_CREATE_PROBES
23 #include "lttng_ust_java.h"
25 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointInt(JNIEnv
*env
,
31 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
33 tracepoint(lttng_ust_java
, int_event
, ev_name_cstr
, payload
);
35 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
38 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointIntInt(JNIEnv
*env
,
45 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
47 tracepoint(lttng_ust_java
, int_int_event
, ev_name_cstr
, payload1
, payload2
);
49 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
52 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointLong(JNIEnv
*env
,
58 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
60 tracepoint(lttng_ust_java
, long_event
, ev_name_cstr
, payload
);
62 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
65 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointLongLong(JNIEnv
*env
,
72 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
74 tracepoint(lttng_ust_java
, long_long_event
, ev_name_cstr
, payload1
, payload2
);
76 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
79 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointString(JNIEnv
*env
,
85 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
86 const char *payload_cstr
= (*env
)->GetStringUTFChars(env
, payload
, &iscopy
);
88 tracepoint(lttng_ust_java
, string_event
, ev_name_cstr
, payload_cstr
);
90 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
91 (*env
)->ReleaseStringUTFChars(env
, payload
, payload_cstr
);
This page took 0.042171 seconds and 4 git commands to generate.