Home | History | Annotate | Download | only in disktest

Lines Matching refs:args

74 	if (test->args->flags & CLD_FLG_W) {
76 *(pVal1 + OFF_WLBA) = test->args->start_lba;
77 test->args->test_state = DIRCT_INC(test->args->test_state);
79 test->args->test_state = SET_OPER_W(test->args->test_state);
80 test->args->test_state = SET_wFST_TIME(test->args->test_state);
81 // srand(test->args->seed); /* reseed so we can re create the same random transfers */
83 sizeof(action_t) * test->args->t_kids);
87 if (test->args->flags & CLD_FLG_CYC)
88 if (test->args->cycles == 0) {
89 pMsg(INFO, test->args,
93 pMsg(INFO, test->args,
96 test->args->cycles);
98 pMsg(INFO, test->args, "Starting write pass\n");
101 for (i = 0; i < test->args->t_kids; i++) {
109 if (!(TST_STS(test->args->test_state))) {
113 if (test->args->flags & CLD_FLG_R) {
115 *(pVal1 + OFF_RLBA) = test->args->start_lba;
116 test->args->test_state = DIRCT_INC(test->args->test_state);
118 test->args->test_state = SET_OPER_R(test->args->test_state);
119 test->args->test_state = SET_rFST_TIME(test->args->test_state);
120 // srand(test->args->seed); /* reseed so we can re create the same random transfers */
122 sizeof(action_t) * test->args->t_kids);
126 if (test->args->flags & CLD_FLG_CYC)
127 if (test->args->cycles == 0) {
128 pMsg(INFO, test->args,
132 pMsg(INFO, test->args,
135 test->args->cycles);
137 pMsg(INFO, test->args, "Starting read pass\n");
140 for (i = 0; i < test->args->t_kids; i++) {
157 pMsg(ERR, test->args,
164 pMsg(ERR, test->args,
171 pMsg(ERR, test->args,
184 if (test->args->seed == 0)
185 test->args->seed = test->args->pid;
186 srand(test->args->seed);
191 (((((size_t) test->args->vsiz)) / 8) ==
192 0) ? 1 : ((((size_t) test->args->vsiz)) / 8);
193 if ((test->args->vsiz / 8) != 0)
197 data_buffer_size = ((test->args->htrsiz * BLK_SIZE) * 2);
200 pMsg(ERR, test->args,
206 (action_t *) ALLOC(sizeof(action_t) * test->args->t_kids)) ==
208 pMsg(ERR, test->args,
218 pMsg(ERR, test->args, "Failed to allocate bitmap memory\n");
225 sizeof(action_t) * test->args->t_kids);
229 *(pVal1 + OFF_WLBA) = test->args->start_lba;
230 *(pVal1 + OFF_RLBA) = test->args->start_lba;
231 test->args->test_state = SET_STS_PASS(test->args->test_state);
232 test->args->test_state = SET_wFST_TIME(test->args->test_state);
233 test->args->test_state = SET_rFST_TIME(test->args->test_state);
234 test->args->test_state = DIRCT_INC(test->args->test_state);
235 if (test->args->flags & CLD_FLG_W) {
237 test->args->test_state = SET_OPER_W(test->args->test_state);
240 test->args->test_state = SET_OPER_R(test->args->test_state);
244 switch (test->args->flags & CLD_FLG_PTYPS) {
246 for (i = 0; i < sizeof(test->args->pattern); i++) {
247 if ((test->args->
249 (((sizeof(test->args->pattern) - 1) -
254 if (i == sizeof(test->args->pattern))
257 &test->args->pattern,
258 sizeof(test->args->pattern) - i, CLD_FLG_FPTYPE);
270 pMsg(WARN, test->args, "Unknown fill pattern\n");
296 test->args->pid = GETPID();
300 if (make_assumptions(test->args) < 0) {
303 if (check_conclusions(test->args) < 0) {
306 if (test->args->flags & CLD_FLG_DUMP) {
311 do_dump(test->args);
321 pMsg(START, test->args, "Start args: %s\n", test->args->argstr);
329 if (test->args->flags & CLD_FLG_RPTYPE) { /* force random data to be different each cycle */
331 ((test->args->htrsiz * BLK_SIZE) * 2), NULL,
336 if ((test->args->flags & CLD_FLG_LINEAR)
337 && !(test->args->flags & CLD_FLG_NTRLVD)) {
342 test->env->start_time + test->args->run_time;
344 *(pVal1 + OFF_WLBA) = test->args->start_lba;
345 test->args->test_state =
346 DIRCT_INC(test->args->test_state);
347 test->args->test_state =
348 SET_wFST_TIME(test->args->test_state);
349 test->args->test_state =
350 SET_rFST_TIME(test->args->test_state);
351 if (test->args->flags & CLD_FLG_W) {
353 test->args->test_state =
354 SET_OPER_W(test->args->test_state);
357 test->args->test_state =
358 SET_OPER_R(test->args->test_state);
361 sizeof(action_t) * test->args->t_kids);
366 if (test->args->flags & CLD_FLG_CYC)
367 if (test->args->cycles == 0) {
368 pMsg(INFO, test->args,
373 pMsg(INFO, test->args,
376 pass_count, test->args->cycles);
378 pMsg(INFO, test->args, "Starting pass\n");
382 for (i = 0; i < test->args->t_kids; i++) {
390 if ((test->args->flags & CLD_FLG_CYC)
391 && (test->args->flags & CLD_FLG_PCYC)) {
392 print_stats(test->args, test->env, CYCLE);
403 if (!(test->args->flags & CLD_FLG_CYC)) {
406 if ((test->args->cycles > 0)
407 && (test->env->pass_count >= test->args->cycles)) {
411 } while (TST_STS(test->args->test_state));
412 print_stats(test->args, test->env, TOTAL);
421 if (TST_STS(test->args->test_state)) {
423 pMsg(END, test->args,
426 pMsg(END, test->args, "Test Done (Passed)\n");
430 pMsg(END, test->args,
433 pMsg(END, test->args, "Test Done (Failed)\n");
459 if ((pNewTest->args =
471 FREE(pNewTest->args);
475 memcpy(pNewTest->args, &cleanArgs, sizeof(child_args_t));
516 memset(newTest->args->device, 0,
518 strncpy(newTest->args->device,