Lines Matching refs:par
94 struct thread_param *par = param; in signalthread() local
98 struct thread_stat *stat = par->stats; in signalthread()
99 int policy = par->prio ? SCHED_FIFO : SCHED_OTHER; in signalthread()
122 sigaddset(&sigset, par->signal); in signalthread()
126 schedp.sched_priority = par->prio; in signalthread()
154 if (!par->id && !(stat->cycles & 0x0F)) in signalthread()
187 if (par->bufmsk) in signalthread()
188 stat->values[stat->cycles & par->bufmsk] = diff; in signalthread()
190 if (par->max_cycles && par->max_cycles == stat->cycles) in signalthread()
291 static void print_stat(struct thread_param *par, int index, int verbose) in print_stat() argument
293 struct thread_stat *stat = par->stats; in print_stat()
299 index, stat->tid, par->prio, in print_stat()
306 long diff = stat->values[stat->cyclesread & par->bufmsk]; in print_stat()
317 struct thread_param *par; in main() local
337 par = calloc(num_threads, sizeof(struct thread_param)); in main()
338 if (!par) in main()
349 par[i].bufmsk = VALBUF_SIZE - 1; in main()
352 par[i].id = i; in main()
353 par[i].prio = priority; in main()
358 par[i].signal = signum; in main()
359 par[i].max_cycles = max_cycles; in main()
360 par[i].stats = &stat[i]; in main()
365 pthread_create(&stat[i].thread, NULL, signalthread, &par[i]); in main()
397 print_stat(&par[0], 0, verbose); in main()
419 print_stat(&par[i], i, 0); in main()
426 free(par); in main()