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
397 struct data__file *d = container_of(ptr, struct data__file, fmt); in fmt_to_data_file() local
399 return d; in fmt_to_data_file()
403 get_pair_data(struct hist_entry *he, struct data__file *d) in get_pair_data() argument
409 if (pair->hists == d->hists) in get_pair_data()
419 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt() local
421 return get_pair_data(he, d); in get_pair_fmt()
459 struct data__file *d; in hists__precompute() local
465 data__for_each_file_new(i, d) { in hists__precompute()
466 pair = get_pair_data(he, d); in hists__precompute()
612 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_delta() local
614 return hist_entry__cmp_compute(right, left, COMPUTE_DELTA, d->idx); in hist_entry__cmp_delta()
621 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_ratio() local
623 return hist_entry__cmp_compute(right, left, COMPUTE_RATIO, d->idx); in hist_entry__cmp_ratio()
630 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_wdiff() local
632 return hist_entry__cmp_compute(right, left, COMPUTE_WEIGHTED_DIFF, d->idx); in hist_entry__cmp_wdiff()
672 struct data__file *d; in data__fprintf() local
677 data__for_each_file(i, d) in data__fprintf()
679 d->idx, d->file.path, in data__fprintf()
680 !d->idx ? "(Baseline)" : ""); in data__fprintf()
693 struct data__file *d; in data_process() local
696 data__for_each_file_new(i, d) { in data_process()
697 struct perf_evlist *evlist = d->session->evlist; in data_process()
706 d->hists = hists; in data_process()
726 static void data__free(struct data__file *d) in data__free() argument
731 struct diff_hpp_fmt *fmt = &d->fmt[col]; in data__free()
739 struct data__file *d; in __cmd_diff() local
742 data__for_each_file(i, d) { in __cmd_diff()
743 d->session = perf_session__new(&d->file, false, &tool); in __cmd_diff()
744 if (!d->session) { in __cmd_diff()
745 pr_err("Failed to open %s\n", d->file.path); in __cmd_diff()
750 ret = perf_session__process_events(d->session); in __cmd_diff()
752 pr_err("Failed to process %s\n", d->file.path); in __cmd_diff()
756 perf_evlist__collapse_resort(d->session->evlist); in __cmd_diff()
762 data__for_each_file(i, d) { in __cmd_diff()
763 if (d->session) in __cmd_diff()
764 perf_session__delete(d->session); in __cmd_diff()
766 data__free(d); in __cmd_diff()
1061 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1077 scnprintf(buf, MAX_HEADER_NAME, "%s/%d", header, d->idx); in init_header()
1093 static void data__hpp_register(struct data__file *d, int idx) in data__hpp_register() argument
1095 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register()
1129 init_header(d, dfmt); in data__hpp_register()
1136 struct data__file *d; in ui_init() local
1140 data__for_each_file(i, d) { in ui_init()
1150 data__hpp_register(d, i ? compute_2_hpp[compute] : in ui_init()
1161 data__hpp_register(d, PERF_HPP_DIFF__FORMULA); in ui_init()
1164 data__hpp_register(d, i ? PERF_HPP_DIFF__PERIOD : in ui_init()
1211 struct data__file *d; in data_init() local
1242 data__for_each_file(i, d) { in data_init()
1243 struct perf_data_file *file = &d->file; in data_init()
1249 d->idx = i; in data_init()