Lines Matching refs:pid
15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
18 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init()
41 zfree(&values->pid); in perf_read_values_init()
57 zfree(&values->pid); in perf_read_values_destroy()
68 void *npid = realloc(values->pid, nthreads_max * sizeof(*values->pid)), in perf_read_values__enlarge_threads()
76 values->pid = npid; in perf_read_values__enlarge_threads()
89 u32 pid, u32 tid) in perf_read_values__findnew_thread() argument
94 if (values->pid[i] == pid && values->tid[i] == tid) in perf_read_values__findnew_thread()
110 values->pid[i] = pid; in perf_read_values__findnew_thread()
185 u32 pid, u32 tid, in perf_read_values_add_value() argument
190 tindex = perf_read_values__findnew_thread(values, pid, tid); in perf_read_values_add_value()
220 width = snprintf(NULL, 0, "%d", values->pid[i]); in perf_read_values__display_pretty()
239 fprintf(fp, " %*d %*d", pidwidth, values->pid[i], in perf_read_values__display_pretty()
262 width = snprintf(NULL, 0, "%d", values->pid[i]); in perf_read_values__display_raw()
292 pidwidth, values->pid[i], in perf_read_values__display_raw()