Cleanup: remove duplicate check for 0 num_subbuf and subbuf_size
[lttng-ust.git] / liblttng-ust-java / LTTNG_UST.c
CommitLineData
5ab4c5cb 1#include <jni.h>
5ab4c5cb 2
cc885e49 3#define TRACEPOINT_DEFINE
2b6f8df9 4#define TRACEPOINT_CREATE_PROBES
2ac85198 5#include "lttng_ust_java.h"
2b6f8df9 6
2ac85198
MD
7JNIEXPORT void JNICALL Java_LTTNG_UST_ust_1java_1event (JNIEnv *env,
8 jobject jobj,
9 jstring ev_name,
10 jstring args)
5ab4c5cb
PMF
11{
12 jboolean iscopy;
2b6f8df9
MD
13 const char *ev_name_cstr = (*env)->GetStringUTFChars(env, ev_name,
14 &iscopy);
5ab4c5cb
PMF
15 const char *args_cstr = (*env)->GetStringUTFChars(env, args, &iscopy);
16
8b9dbb05 17 tracepoint(lttng_ust_java, string, ev_name_cstr, args_cstr);
5ab4c5cb 18}
This page took 0.031707 seconds and 5 git commands to generate.