--- a/src/hotspot/share/jfr/jni/jfrJniMethod.cpp Fri May 17 15:53:21 2019 +0200
+++ b/src/hotspot/share/jfr/jni/jfrJniMethod.cpp Fri May 17 16:02:27 2019 +0200
@@ -284,6 +284,10 @@
return JfrJavaEventWriter::flush(writer, used_size, requested_size, thread);
JVM_END
+JVM_ENTRY_NO_ENV(void, jfr_flush(JNIEnv* env, jobject jvm, jboolean include_metadata, jshort flush_counter))
+ JfrRepository::flush(include_metadata == JNI_TRUE, thread);
+JVM_END
+
JVM_ENTRY_NO_ENV(void, jfr_set_repository_location(JNIEnv* env, jobject repo, jstring location))
return JfrRepository::set_path(location, thread);
JVM_END
@@ -311,3 +315,20 @@
JVM_ENTRY_NO_ENV(void, jfr_emit_old_object_samples(JNIEnv* env, jobject jvm, jlong cutoff_ticks, jboolean emit_all))
LeakProfiler::emit_events(cutoff_ticks, emit_all == JNI_TRUE);
JVM_END
+
+JVM_ENTRY_NO_ENV(void, jfr_exclude_thread(JNIEnv* env, jobject jvm, jobject t))
+ JfrJavaSupport::exclude(t);
+JVM_END
+
+JVM_ENTRY_NO_ENV(void, jfr_include_thread(JNIEnv* env, jobject jvm, jobject t))
+ JfrJavaSupport::include(t);
+JVM_END
+
+JVM_ENTRY_NO_ENV(jboolean, jfr_is_thread_excluded(JNIEnv* env, jobject jvm, jobject t))
+ return JfrJavaSupport::is_excluded(t);
+JVM_END
+
+JVM_ENTRY_NO_ENV(jlong, jfr_chunk_start_nanos(JNIEnv* env, jobject jvm))
+ return JfrRepository::current_chunk_start_nanos();
+JVM_END
+