author | phh |
Sat, 30 Nov 2019 14:33:05 -0800 | |
changeset 59330 | 5b96c12f909d |
parent 59226 | a0f39cc47387 |
permissions | -rw-r--r-- |
50113 | 1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
53014
diff
changeset
|
2 |
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. |
50113 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
* |
|
23 |
*/ |
|
24 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
53014
diff
changeset
|
25 |
#ifndef SHARE_JFR_JNI_JFRJNIMETHOD_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
53014
diff
changeset
|
26 |
#define SHARE_JFR_JNI_JFRJNIMETHOD_HPP |
50113 | 27 |
|
28 |
#include "jni.h" |
|
29 |
||
30 |
/* |
|
31 |
* Native methods for jdk.jfr.internal.JVM |
|
32 |
*/ |
|
33 |
||
34 |
#ifdef __cplusplus |
|
35 |
extern "C" { |
|
36 |
#endif |
|
37 |
||
38 |
jboolean JNICALL jfr_is_enabled(); |
|
39 |
||
40 |
jboolean JNICALL jfr_is_disabled(); |
|
41 |
||
42 |
jboolean JNICALL jfr_is_started(); |
|
43 |
||
44 |
jlong JNICALL jfr_elapsed_counter(JNIEnv* env, jobject jvm); |
|
45 |
||
46 |
jboolean JNICALL jfr_create_jfr(JNIEnv* env, jobject jvm, jboolean simulate_failure); |
|
47 |
||
48 |
jboolean JNICALL jfr_destroy_jfr(JNIEnv* env, jobject jvm); |
|
49 |
||
50 |
void JNICALL jfr_begin_recording(JNIEnv* env, jobject jvm); |
|
51 |
||
59226 | 52 |
jboolean JNICALL jfr_is_recording(JNIEnv* env, jobject jvm); |
53 |
||
50113 | 54 |
void JNICALL jfr_end_recording(JNIEnv* env, jobject jvm); |
55 |
||
59226 | 56 |
void JNICALL jfr_mark_chunk_final(JNIEnv* env, jobject jvm); |
57 |
||
50113 | 58 |
jboolean JNICALL jfr_emit_event(JNIEnv* env, jobject jvm, jlong eventTypeId, jlong timeStamp, jlong when); |
59 |
||
60 |
jobject JNICALL jfr_get_all_event_classes(JNIEnv* env, jobject jvm); |
|
61 |
||
62 |
jlong JNICALL jfr_class_id(JNIEnv* env, jclass jvm, jclass jc); |
|
63 |
||
64 |
jstring JNICALL jfr_get_pid(JNIEnv* env, jobject jvm); |
|
65 |
||
66 |
jlong JNICALL jfr_stacktrace_id(JNIEnv* env, jobject jvm, jint skip); |
|
67 |
||
68 |
jlong JNICALL jfr_elapsed_frequency(JNIEnv* env, jobject jvm); |
|
69 |
||
70 |
void JNICALL jfr_subscribe_log_level(JNIEnv* env, jobject jvm, jobject log_tag, jint id); |
|
71 |
||
72 |
void JNICALL jfr_log(JNIEnv* env, jobject jvm, jint tag_set, jint level, jstring message); |
|
73 |
||
74 |
void JNICALL jfr_retransform_classes(JNIEnv* env, jobject jvm, jobjectArray classes); |
|
75 |
||
76 |
void JNICALL jfr_set_enabled(JNIEnv* env, jobject jvm, jlong event_type_id, jboolean enabled); |
|
77 |
||
78 |
void JNICALL jfr_set_file_notification(JNIEnv* env, jobject jvm, jlong delta); |
|
79 |
||
80 |
void JNICALL jfr_set_global_buffer_count(JNIEnv* env, jobject jvm, jlong count); |
|
81 |
||
82 |
void JNICALL jfr_set_global_buffer_size(JNIEnv* env, jobject jvm, jlong size); |
|
83 |
||
84 |
void JNICALL jfr_set_method_sampling_interval(JNIEnv* env, jobject jvm, jlong type, jlong intervalMillis); |
|
85 |
||
86 |
void JNICALL jfr_set_output(JNIEnv* env, jobject jvm, jstring path); |
|
87 |
||
88 |
void JNICALL jfr_set_sample_threads(JNIEnv* env, jobject jvm, jboolean sampleThreads); |
|
89 |
||
90 |
void JNICALL jfr_set_stack_depth(JNIEnv* env, jobject jvm, jint depth); |
|
91 |
||
92 |
void JNICALL jfr_set_stacktrace_enabled(JNIEnv* env, jobject jvm, jlong event_type_id, jboolean enabled); |
|
93 |
||
94 |
void JNICALL jfr_set_thread_buffer_size(JNIEnv* env, jobject jvm, jlong size); |
|
95 |
||
96 |
void JNICALL jfr_set_memory_size(JNIEnv* env, jobject jvm, jlong size); |
|
97 |
||
98 |
jboolean JNICALL jfr_set_threshold(JNIEnv* env, jobject jvm, jlong event_type_id, jlong thresholdTicks); |
|
99 |
||
100 |
void JNICALL jfr_store_metadata_descriptor(JNIEnv* env, jobject jvm, jbyteArray descriptor); |
|
101 |
||
102 |
jlong JNICALL jfr_id_for_thread(JNIEnv* env, jobject jvm, jobject t); |
|
103 |
||
104 |
jboolean JNICALL jfr_allow_event_retransforms(JNIEnv* env, jobject jvm); |
|
105 |
||
106 |
jboolean JNICALL jfr_is_available(JNIEnv* env, jclass jvm); |
|
107 |
||
108 |
jdouble JNICALL jfr_time_conv_factor(JNIEnv* env, jobject jvm); |
|
109 |
||
110 |
jlong JNICALL jfr_type_id(JNIEnv* env, jobject jvm, jclass jc); |
|
111 |
||
112 |
void JNICALL jfr_set_repository_location(JNIEnv* env, jobject repo, jstring location); |
|
113 |
||
114 |
jobject JNICALL jfr_get_event_writer(JNIEnv* env, jclass cls); |
|
115 |
||
116 |
jobject JNICALL jfr_new_event_writer(JNIEnv* env, jclass cls); |
|
117 |
||
118 |
jboolean JNICALL jfr_event_writer_flush(JNIEnv* env, jclass cls, jobject writer, jint used_size, jint requested_size); |
|
119 |
||
58863 | 120 |
void JNICALL jfr_flush(JNIEnv* env, jobject jvm); |
50113 | 121 |
void JNICALL jfr_abort(JNIEnv* env, jobject jvm, jstring errorMsg); |
122 |
||
123 |
jlong JNICALL jfr_get_epoch_address(JNIEnv* env, jobject jvm); |
|
124 |
||
50163
268ea94772da
8203346: JFR: Inconsistent signature of jfr_add_string_constant
mgronlun
parents:
50113
diff
changeset
|
125 |
jboolean JNICALL jfr_add_string_constant(JNIEnv* env, jclass jvm, jboolean epoch, jlong id, jstring string); |
50113 | 126 |
|
127 |
void JNICALL jfr_uncaught_exception(JNIEnv* env, jobject jvm, jobject thread, jthrowable throwable); |
|
128 |
||
129 |
void JNICALL jfr_set_force_instrumentation(JNIEnv* env, jobject jvm, jboolean force); |
|
130 |
||
131 |
jlong JNICALL jfr_get_unloaded_event_classes_count(JNIEnv* env, jobject jvm); |
|
132 |
||
133 |
jboolean JNICALL jfr_set_cutoff(JNIEnv* env, jobject jvm, jlong event_type_id, jlong cutoff_ticks); |
|
134 |
||
135 |
void JNICALL jfr_emit_old_object_samples(JNIEnv* env, jobject jvm, jlong cutoff_ticks, jboolean); |
|
136 |
||
53014
339d2fbe8675
8215284: Reduce noise induced by periodic task getFileSize()
mgronlun
parents:
50163
diff
changeset
|
137 |
jboolean JNICALL jfr_should_rotate_disk(JNIEnv* env, jobject jvm); |
339d2fbe8675
8215284: Reduce noise induced by periodic task getFileSize()
mgronlun
parents:
50163
diff
changeset
|
138 |
|
58863 | 139 |
void JNICALL jfr_exclude_thread(JNIEnv* env, jobject jvm, jobject t); |
140 |
||
141 |
void JNICALL jfr_include_thread(JNIEnv* env, jobject jvm, jobject t); |
|
142 |
||
143 |
jboolean JNICALL jfr_is_thread_excluded(JNIEnv* env, jobject jvm, jobject t); |
|
144 |
||
145 |
jlong JNICALL jfr_chunk_start_nanos(JNIEnv* env, jobject jvm); |
|
53014
339d2fbe8675
8215284: Reduce noise induced by periodic task getFileSize()
mgronlun
parents:
50163
diff
changeset
|
146 |
|
50113 | 147 |
#ifdef __cplusplus |
148 |
} |
|
149 |
#endif |
|
150 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
53014
diff
changeset
|
151 |
#endif // SHARE_JFR_JNI_JFRJNIMETHOD_HPP |