Lines Matching refs:tids
54 pid_t *tids; member
87 if (!switch_tracking->tids) { in check_cpu()
88 switch_tracking->tids = calloc(nr, sizeof(pid_t)); in check_cpu()
89 if (!switch_tracking->tids) in check_cpu()
92 switch_tracking->tids[i] = -1; in check_cpu()
100 addr = realloc(switch_tracking->tids, nr * sizeof(pid_t)); in check_cpu()
103 switch_tracking->tids = addr; in check_cpu()
105 switch_tracking->tids[i] = -1; in check_cpu()
141 if (switch_tracking->tids[cpu] != -1 && in process_sample_event()
142 switch_tracking->tids[cpu] != prev_tid) { in process_sample_event()
146 switch_tracking->tids[cpu] = next_tid; in process_sample_event()
311 struct switch_tracking switch_tracking = { .tids = NULL, }; in test__switch_tracking()
529 zfree(&switch_tracking.tids); in test__switch_tracking()