Lines Matching refs:jvmti

20 static void print_error(jvmtiEnv *jvmti, const char *msg, jvmtiError ret)  in print_error()  argument
24 err = (*jvmti)->GetErrorName(jvmti, ret, &err_msg); in print_error()
27 (*jvmti)->Deallocate(jvmti, (unsigned char *)err_msg); in print_error()
35 do_get_line_number(jvmtiEnv *jvmti, void *pc, jmethodID m, jint bci, in do_get_line_number() argument
43 ret = (*jvmti)->GetLineNumberTable(jvmti, m, &nr_lines, &loc_tab); in do_get_line_number()
48 print_error(jvmti, "GetLineNumberTable", ret); in do_get_line_number()
67 (*jvmti)->Deallocate(jvmti, (unsigned char *)loc_tab); in do_get_line_number()
73 get_line_numbers(jvmtiEnv *jvmti, const void *compile_info, jvmti_line_info_t **tab, int *nr_lines) in get_line_numbers() argument
115 ret = do_get_line_number(jvmti, c->pc, in get_line_numbers()
130 get_line_numbers(jvmtiEnv *jvmti __maybe_unused, const void *compile_info __maybe_unused, in get_line_numbers()
166 get_source_filename(jvmtiEnv *jvmti, jmethodID methodID, char ** buffer) in get_source_filename() argument
175 ret = (*jvmti)->GetMethodDeclaringClass(jvmti, methodID, &decl_class); in get_source_filename()
177 print_error(jvmti, "GetMethodDeclaringClass", ret); in get_source_filename()
181 ret = (*jvmti)->GetSourceFileName(jvmti, decl_class, &file_name); in get_source_filename()
183 print_error(jvmti, "GetSourceFileName", ret); in get_source_filename()
187 ret = (*jvmti)->GetClassSignature(jvmti, decl_class, &class_sign, NULL); in get_source_filename()
189 print_error(jvmti, "GetClassSignature", ret); in get_source_filename()
197 print_error(jvmti, "GetClassSignature", ret); in get_source_filename()
205 (*jvmti)->Deallocate(jvmti, (unsigned char *)class_sign); in get_source_filename()
207 (*jvmti)->Deallocate(jvmti, (unsigned char *)file_name); in get_source_filename()
213 fill_source_filenames(jvmtiEnv *jvmti, int nr_lines, in fill_source_filenames() argument
221 ret = get_source_filename(jvmti, line_tab[index].methodID, &(file_names[index])); in fill_source_filenames()
230 compiled_method_load_cb(jvmtiEnv *jvmti, in compiled_method_load_cb() argument
250 ret = (*jvmti)->GetMethodDeclaringClass(jvmti, method, in compiled_method_load_cb()
253 print_error(jvmti, "GetMethodDeclaringClass", ret); in compiled_method_load_cb()
258 ret = get_line_numbers(jvmti, compile_info, &line_tab, &nr_lines); in compiled_method_load_cb()
270 ret = fill_source_filenames(jvmti, nr_lines, line_tab, line_file_names); in compiled_method_load_cb()
280 ret = (*jvmti)->GetClassSignature(jvmti, decl_class, in compiled_method_load_cb()
283 print_error(jvmti, "GetClassSignature", ret); in compiled_method_load_cb()
287 ret = (*jvmti)->GetMethodName(jvmti, method, &func_name, in compiled_method_load_cb()
290 print_error(jvmti, "GetMethodName", ret); in compiled_method_load_cb()
310 (*jvmti)->Deallocate(jvmti, (unsigned char *)func_name); in compiled_method_load_cb()
311 (*jvmti)->Deallocate(jvmti, (unsigned char *)func_sign); in compiled_method_load_cb()
312 (*jvmti)->Deallocate(jvmti, (unsigned char *)class_sign); in compiled_method_load_cb()
324 code_generated_cb(jvmtiEnv *jvmti, in code_generated_cb() argument
343 jvmtiEnv *jvmti = NULL; in Agent_OnLoad() local
355 ret = (*jvm)->GetEnv(jvm, (void *)&jvmti, JVMTI_VERSION_1); in Agent_OnLoad()
368 ret = (*jvmti)->AddCapabilities(jvmti, &caps1); in Agent_OnLoad()
370 print_error(jvmti, "AddCapabilities", ret); in Agent_OnLoad()
373 ret = (*jvmti)->GetJLocationFormat(jvmti, &format); in Agent_OnLoad()
378 ret = (*jvmti)->AddCapabilities(jvmti, &caps1); in Agent_OnLoad()
382 print_error(jvmti, "GetJLocationFormat", ret); in Agent_OnLoad()
390 ret = (*jvmti)->SetEventCallbacks(jvmti, &cb, sizeof(cb)); in Agent_OnLoad()
392 print_error(jvmti, "SetEventCallbacks", ret); in Agent_OnLoad()
396 ret = (*jvmti)->SetEventNotificationMode(jvmti, JVMTI_ENABLE, in Agent_OnLoad()
399 print_error(jvmti, "SetEventNotificationMode(METHOD_LOAD)", ret); in Agent_OnLoad()
403 ret = (*jvmti)->SetEventNotificationMode(jvmti, JVMTI_ENABLE, in Agent_OnLoad()
406 print_error(jvmti, "SetEventNotificationMode(CODE_GENERATED)", ret); in Agent_OnLoad()