Lines Matching refs:n
395 printf("Please remove semaphore with key=0x%lx, then run the tool.\n",
400 vbprintf("semid[%d]=0x%lx, key[%d]=%lx\n",cpu,(u64)semid[cpu],cpu,
450 fprintf(stderr,"write to file with wrong size!\n");
490 perror("status reading error.\n");
502 perror("capabilities reading error.\n");
518 perror("err_type_info reading error.\n");
521 printf("err_type_info=%lx\n", err_type_info);
525 perror("err_struct_info reading error.\n");
528 printf("err_struct_info=%lx\n", err_struct_info);
532 perror("err_data_buffer reading error.\n");
535 printf("err_data_buffer=%lx\n", err_data_buffer);
539 perror("status reading error.\n");
542 printf("status=%d\n", status);
546 perror("capabilities reading error.\n");
549 printf("capabilities=%lx\n", capabilities);
553 perror("resources reading error.\n");
556 printf("resources=%lx\n", resources);
601 printf("All capabilities implemented in pal_mc_error_inject:\n");
623 printf("capabilities 0x%lx\n", capabilities);
627 printf("No capabilities supported.\n");
644 log_info(cpu,"err_data_buffer=[%lx,%lx,%lx]\n",
660 vbprintf("fail: read status\n");
665 log_info(cpu, "fail: status=%d\n", status);
680 vbprintf("va1=%lx\n", (u64)va1);
698 printf("Not supported cl_id\n");
708 printf("Not supported err_struct\n");
768 count=sscanf(buf, "%lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx\n",
778 count=sscanf(buf, "%lx, %lx, %lx, %lx, %lx\n",
815 printf("Can not create semaphore...exit\n");
823 printf("Can not create semaphore for cpu%d...exit\n",i);
832 printf("Error to create shm...exit\n");
841 log_info(parameters[i].cpu, "Configurations:\n");
846 log_info(parameters[i].cpu," err_type_info=%lx,err_struct_info=%lx\n",
868 vbprintf("va1=%lx, va2=%lx\n", (u64)va1, (u64)va2);
913 "successful\n");
918 "status=%d\n", status);
951 printf("All done.\n");
958 printf("err_inject_tool:\n");
959 printf("\t-q: query all capabilities. default: off\n");
960 printf("\t-m: procedure mode. 1: physical 2: virtual. default: 1\n");
961 printf("\t-i: inject errors. default: off\n");
962 printf("\t-l: one lock per cpu. default: one lock for all\n");
963 printf("\t-e: error parameters:\n");
964 …erval,err_type_info,err_struct_info[,err_data_buffer[0],err_data_buffer[1],err_data_buffer[2]]\n");
965 printf("\t\t cpu: logical cpu number the error will be inject in.\n");
966 printf("\t\t loop: times the error will be injected.\n");
967 printf("\t\t interval: In second. every so often one error is injected.\n");
968 printf("\t\t err_type_info, err_struct_info: PAL parameters.\n");
969 printf("\t\t err_data_buffer: PAL parameter. Optional. If not present,\n");
970 printf("\t\t it's constructed by tool automatically. Be\n");
971 printf("\t\t careful to provide err_data_buffer and make\n");
972 printf("\t\t sure it's working with the environment.\n");
973 printf("\t Note:no space between error parameters.\n");
974 printf("\t default: Take error parameters from err.conf instead of command line.\n");
975 printf("\t-v: verbose. default: off\n");
976 printf("\t-h: help\n\n");
979 printf("on one or multiple cpus in parallel.\n");
997 printf("Wrong mode number.\n");
1022 "%lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx\n",
1035 count=sscanf(optarg, "%lx, %lx, %lx, %lx, %lx\n",
1042 printf("Wrong error arguments.\n");