Lines Matching refs:parameters

44   #	err_type_info, err_struct_info: PAL parameters.
751 parameters_t parameters[MAX_TASK_NUM]={};
785 parameters[num].cpu=cpu;
786 parameters[num].loop=loop;
787 parameters[num].interval= interval>MIN_INTERVAL
789 parameters[num].err_type_info=err_type_info_conf;
790 parameters[num].err_struct_info=err_struct_info_conf;
791 memcpy(parameters[num++].err_data_buffer,
799 parameters[0].cpu=line_para.cpu;
800 parameters[0].loop=line_para.loop;
801 parameters[0].interval= line_para.interval>MIN_INTERVAL
803 parameters[0].err_type_info=line_para.err_type_info;
804 parameters[0].err_struct_info=line_para.err_struct_info;
805 memcpy(parameters[0].err_data_buffer,
822 if (create_sem(parameters[i].cpu)) {
824 free_sem(parameters[num].cpu);
840 log_info(parameters[i].cpu, "\nBegine at %s", ctime(&current_time));
841 log_info(parameters[i].cpu, "Configurations:\n");
842 log_info(parameters[i].cpu,"On cpu%ld: loop=%lx, interval=%lx(s)",
843 parameters[i].cpu,
844 parameters[i].loop,
845 parameters[i].interval);
846 log_info(parameters[i].cpu," err_type_info=%lx,err_struct_info=%lx\n",
847 parameters[i].err_type_info,
848 parameters[i].err_struct_info);
850 sprintf(path, PATH_FORMAT, (int)parameters[i].cpu);
851 err_type_info.err_type_info=parameters[i].err_type_info;
852 err_struct_info.err_struct_info=parameters[i].err_struct_info;
854 parameters[i].err_data_buffer,
865 va1=shmaddr+parameters[i].cpu*PAGE_SIZE;
866 va2=shmaddr+parameters[i].cpu*PAGE_SIZE+PAGE_SIZE;
882 cpu=parameters[i].cpu;
892 for (j=0; j<parameters[i].loop; j++) {
893 log_info(parameters[i].cpu,"Injection ");
894 log_info(parameters[i].cpu,"on cpu%ld: #%d/%ld ",
896 parameters[i].cpu,j+1, parameters[i].loop);
903 lock(parameters[i].cpu);
905 if ((status=err_inject(parameters[i].cpu,
912 log_info(parameters[i].cpu,
916 log_info(parameters[i].cpu,"fail:");
917 log_info(parameters[i].cpu,
919 unlock(parameters[i].cpu);
927 unlock(parameters[i].cpu);
929 if (j < parameters[i].loop-1)
930 sleep(parameters[i].interval);
933 log_info(parameters[i].cpu, "Done at %s", ctime(&current_time));
949 free_sem(parameters[i].cpu);
963 printf("\t-e: error parameters:\n");
968 printf("\t\t err_type_info, err_struct_info: PAL parameters.\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");
1016 /* Take parameters: