Lines Matching refs:ret

20 static void print_error(jvmtiEnv *jvmti, const char *msg, jvmtiError ret)
24 err = (*jvmti)->GetErrorName(jvmti, ret, &err_msg);
29 warnx("%s failed with an unknown error %d", msg, ret);
40 jvmtiError ret;
43 ret = (*jvmti)->GetLineNumberTable(jvmti, m, &nr_lines, &loc_tab);
44 if (ret == JVMTI_ERROR_ABSENT_INFORMATION || ret == JVMTI_ERROR_NATIVE_METHOD) {
46 return ret;
47 } else if (ret != JVMTI_ERROR_NONE) {
48 print_error(jvmti, "GetLineNumberTable", ret);
49 return ret;
62 ret = JVMTI_ERROR_NONE;
64 ret = JVMTI_ERROR_ABSENT_INFORMATION;
69 return ret;
78 jint ret;
115 ret = do_get_line_number(jvmti, c->pc,
119 if (ret == JVMTI_ERROR_NONE)
168 jvmtiError ret;
175 ret = (*jvmti)->GetMethodDeclaringClass(jvmti, methodID, &decl_class);
176 if (ret != JVMTI_ERROR_NONE) {
177 print_error(jvmti, "GetMethodDeclaringClass", ret);
178 return ret;
181 ret = (*jvmti)->GetSourceFileName(jvmti, decl_class, &file_name);
182 if (ret != JVMTI_ERROR_NONE) {
183 print_error(jvmti, "GetSourceFileName", ret);
184 return ret;
187 ret = (*jvmti)->GetClassSignature(jvmti, decl_class, &class_sign, NULL);
188 if (ret != JVMTI_ERROR_NONE) {
189 print_error(jvmti, "GetClassSignature", ret);
197 print_error(jvmti, "GetClassSignature", ret);
198 ret = JVMTI_ERROR_OUT_OF_MEMORY;
202 ret = JVMTI_ERROR_NONE;
209 return ret;
218 jvmtiError ret;
221 ret = get_source_filename(jvmti, line_tab[index].methodID, &(file_names[index]));
222 if (ret != JVMTI_ERROR_NONE)
223 return ret;
245 jvmtiError ret;
250 ret = (*jvmti)->GetMethodDeclaringClass(jvmti, method,
252 if (ret != JVMTI_ERROR_NONE) {
253 print_error(jvmti, "GetMethodDeclaringClass", ret);
258 ret = get_line_numbers(jvmti, compile_info, &line_tab, &nr_lines);
259 if (ret != JVMTI_ERROR_NONE) {
260 if (ret != JVMTI_ERROR_NOT_FOUND) {
270 ret = fill_source_filenames(jvmti, nr_lines, line_tab, line_file_names);
271 if (ret != JVMTI_ERROR_NONE) {
280 ret = (*jvmti)->GetClassSignature(jvmti, decl_class,
282 if (ret != JVMTI_ERROR_NONE) {
283 print_error(jvmti, "GetClassSignature", ret);
287 ret = (*jvmti)->GetMethodName(jvmti, method, &func_name,
289 if (ret != JVMTI_ERROR_NONE) {
290 print_error(jvmti, "GetMethodName", ret);
330 int ret;
332 ret = jvmti_write_code(jvmti_agent, name, addr, code_addr, code_size);
333 if (ret)
344 jint ret;
355 ret = (*jvm)->GetEnv(jvm, (void *)&jvmti, JVMTI_VERSION_1);
356 if (ret != JNI_OK) {
368 ret = (*jvmti)->AddCapabilities(jvmti, &caps1);
369 if (ret != JVMTI_ERROR_NONE) {
370 print_error(jvmti, "AddCapabilities", ret);
373 ret = (*jvmti)->GetJLocationFormat(jvmti, &format);
374 if (ret == JVMTI_ERROR_NONE && format == JVMTI_JLOCATION_JVMBCI) {
378 ret = (*jvmti)->AddCapabilities(jvmti, &caps1);
379 if (ret == JVMTI_ERROR_NONE)
381 } else if (ret != JVMTI_ERROR_NONE)
382 print_error(jvmti, "GetJLocationFormat", ret);
390 ret = (*jvmti)->SetEventCallbacks(jvmti, &cb, sizeof(cb));
391 if (ret != JVMTI_ERROR_NONE) {
392 print_error(jvmti, "SetEventCallbacks", ret);
396 ret = (*jvmti)->SetEventNotificationMode(jvmti, JVMTI_ENABLE,
398 if (ret != JVMTI_ERROR_NONE) {
399 print_error(jvmti, "SetEventNotificationMode(METHOD_LOAD)", ret);
403 ret = (*jvmti)->SetEventNotificationMode(jvmti, JVMTI_ENABLE,
405 if (ret != JVMTI_ERROR_NONE) {
406 print_error(jvmti, "SetEventNotificationMode(CODE_GENERATED)", ret);
415 int ret;
417 ret = jvmti_close(jvmti_agent);
418 if (ret)