Lines Matching refs:pidb
854 static int entries_close(struct btrace_pid *pida, struct btrace_pid *pidb) in entries_close() argument
860 if ((pida->o.ios[i] && !pidb->o.ios[i]) || in entries_close()
861 (pidb->o.ios[i] && !pida->o.ios[i])) in entries_close()
863 if (pida->o.ios[i] && pidb->o.ios[i]) { in entries_close()
865 percb = ((float) pidb->o.seq[i] * 100.0) / (float) pidb->o.ios[i]; in entries_close()
871 idiff = pida->o.depth - pidb->o.depth; in entries_close()
911 static int merge_entries(struct btrace_pid *pida, struct btrace_pid *pidb) in merge_entries() argument
915 if (!entries_close(pida, pidb)) in merge_entries()
920 pida->merge_pids[pida->nr_merge_pids - 1] = pidb->pid; in merge_entries()
924 struct btrace_out *ob = &pidb->o; in merge_entries()
935 pida->o.start_delay = min(pida->o.start_delay, pidb->o.start_delay); in merge_entries()
936 pida->o.depth = (pida->o.depth + pidb->o.depth) / 2; in merge_entries()
948 struct btrace_pid *pidb; in check_merges() local
950 pidb = flist_entry(e, struct btrace_pid, pid_list); in check_merges()
951 if (pidb == p) in check_merges()
954 if (merge_entries(p, pidb)) { in check_merges()
955 pidb->ignore = 1; in check_merges()