2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 #include "org_lttng_ust_LTTngUst.h"
10 #define TRACEPOINT_DEFINE
11 #define TRACEPOINT_CREATE_PROBES
12 #include "lttng_ust_java.h"
14 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointInt(JNIEnv
*env
,
15 jobject jobj
__attribute__((unused
)),
20 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
22 tracepoint(lttng_ust_java
, int_event
, ev_name_cstr
, payload
);
24 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
27 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointIntInt(JNIEnv
*env
,
28 jobject jobj
__attribute__((unused
)),
34 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
36 tracepoint(lttng_ust_java
, int_int_event
, ev_name_cstr
, payload1
, payload2
);
38 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
41 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointLong(JNIEnv
*env
,
42 jobject jobj
__attribute__((unused
)),
47 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
49 tracepoint(lttng_ust_java
, long_event
, ev_name_cstr
, payload
);
51 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
54 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointLongLong(JNIEnv
*env
,
55 jobject jobj
__attribute__((unused
)),
61 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
63 tracepoint(lttng_ust_java
, long_long_event
, ev_name_cstr
, payload1
, payload2
);
65 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
68 JNIEXPORT
void JNICALL
Java_org_lttng_ust_LTTngUst_tracepointString(JNIEnv
*env
,
69 jobject jobj
__attribute__((unused
)),
74 const char *ev_name_cstr
= (*env
)->GetStringUTFChars(env
, ev_name
, &iscopy
);
75 const char *payload_cstr
= (*env
)->GetStringUTFChars(env
, payload
, &iscopy
);
77 tracepoint(lttng_ust_java
, string_event
, ev_name_cstr
, payload_cstr
);
79 (*env
)->ReleaseStringUTFChars(env
, ev_name
, ev_name_cstr
);
80 (*env
)->ReleaseStringUTFChars(env
, payload
, payload_cstr
);
This page took 0.032164 seconds and 4 git commands to generate.