Lines Matching refs:d

55 #define data__for_each_file_start(i, d, s)	\  argument
56 for (i = s, d = &data__files[s]; \
58 i++, d = &data__files[i])
60 #define data__for_each_file(i, d) data__for_each_file_start(i, d, 0) argument
61 #define data__for_each_file_new(i, d) data__for_each_file_start(i, d, 1) argument
400 struct data__file *d = container_of(ptr, struct data__file, fmt); in fmt_to_data_file() local
402 return d; in fmt_to_data_file()
406 get_pair_data(struct hist_entry *he, struct data__file *d) in get_pair_data() argument
412 if (pair->hists == d->hists) in get_pair_data()
422 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt() local
424 return get_pair_data(he, d); in get_pair_fmt()
462 struct data__file *d; in hists__precompute() local
468 data__for_each_file_new(i, d) { in hists__precompute()
469 pair = get_pair_data(he, d); in hists__precompute()
615 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_delta() local
617 return hist_entry__cmp_compute(right, left, COMPUTE_DELTA, d->idx); in hist_entry__cmp_delta()
624 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_ratio() local
626 return hist_entry__cmp_compute(right, left, COMPUTE_RATIO, d->idx); in hist_entry__cmp_ratio()
633 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_wdiff() local
635 return hist_entry__cmp_compute(right, left, COMPUTE_WEIGHTED_DIFF, d->idx); in hist_entry__cmp_wdiff()
675 struct data__file *d; in data__fprintf() local
680 data__for_each_file(i, d) in data__fprintf()
682 d->idx, d->file.path, in data__fprintf()
683 !d->idx ? "(Baseline)" : ""); in data__fprintf()
696 struct data__file *d; in data_process() local
699 data__for_each_file_new(i, d) { in data_process()
700 struct perf_evlist *evlist = d->session->evlist; in data_process()
709 d->hists = hists; in data_process()
732 static void data__free(struct data__file *d) in data__free() argument
737 struct diff_hpp_fmt *fmt = &d->fmt[col]; in data__free()
745 struct data__file *d; in __cmd_diff() local
748 data__for_each_file(i, d) { in __cmd_diff()
749 d->session = perf_session__new(&d->file, false, &tool); in __cmd_diff()
750 if (!d->session) { in __cmd_diff()
751 pr_err("Failed to open %s\n", d->file.path); in __cmd_diff()
756 ret = perf_session__process_events(d->session); in __cmd_diff()
758 pr_err("Failed to process %s\n", d->file.path); in __cmd_diff()
762 perf_evlist__collapse_resort(d->session->evlist); in __cmd_diff()
768 data__for_each_file(i, d) { in __cmd_diff()
769 if (d->session) in __cmd_diff()
770 perf_session__delete(d->session); in __cmd_diff()
772 data__free(d); in __cmd_diff()
1067 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1083 scnprintf(buf, MAX_HEADER_NAME, "%s/%d", header, d->idx); in init_header()
1099 static void data__hpp_register(struct data__file *d, int idx) in data__hpp_register() argument
1101 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register()
1135 init_header(d, dfmt); in data__hpp_register()
1142 struct data__file *d; in ui_init() local
1146 data__for_each_file(i, d) { in ui_init()
1156 data__hpp_register(d, i ? compute_2_hpp[compute] : in ui_init()
1167 data__hpp_register(d, PERF_HPP_DIFF__FORMULA); in ui_init()
1170 data__hpp_register(d, i ? PERF_HPP_DIFF__PERIOD : in ui_init()
1217 struct data__file *d; in data_init() local
1248 data__for_each_file(i, d) { in data_init()
1249 struct perf_data_file *file = &d->file; in data_init()
1255 d->idx = i; in data_init()