Commit | Line | Data |
---|---|---|
5ab4c5cb PMF |
1 | #include <jni.h> |
2 | #include <ust/marker.h> | |
3 | ||
4 | JNIEXPORT void JNICALL Java_UST_ust_1java_1event (JNIEnv *env, jobject jobj, jstring ev_name, jstring args) | |
5 | { | |
6 | jboolean iscopy; | |
7 | const char *ev_name_cstr = (*env)->GetStringUTFChars(env, ev_name, &iscopy); | |
8 | const char *args_cstr = (*env)->GetStringUTFChars(env, args, &iscopy); | |
9 | ||
10 | trace_mark(ust, java_event, "name %s args %s", ev_name_cstr, args_cstr); | |
11 | } | |
12 | ||
13 | MARKER_LIB |