Lines Matching refs:nr_options

1320 	int nr_options = 0, choice = -1, ret = -1;  in switch_data_file()  local
1353 options[nr_options] = strdup(name); in switch_data_file()
1354 if (!options[nr_options]) in switch_data_file()
1357 abs_path[nr_options] = strdup(path); in switch_data_file()
1358 if (!abs_path[nr_options]) { in switch_data_file()
1359 zfree(&options[nr_options]); in switch_data_file()
1365 nr_options++; in switch_data_file()
1370 if (nr_options >= 32) { in switch_data_file()
1378 if (nr_options) { in switch_data_file()
1379 choice = ui__popup_menu(nr_options, options); in switch_data_file()
1380 if (choice < nr_options && choice >= 0) { in switch_data_file()
1393 free_popup_options(options, nr_options); in switch_data_file()
1394 free_popup_options(abs_path, nr_options); in switch_data_file()
1428 int nr_options = 0; in perf_evsel__hists_browse() local
1499 nr_options = 0; in perf_evsel__hists_browse()
1628 asprintf(&options[nr_options], "Annotate %s", bi->from.sym->name) > 0) { in perf_evsel__hists_browse()
1629 annotate_f = nr_options++; in perf_evsel__hists_browse()
1636 asprintf(&options[nr_options], "Annotate %s", bi->to.sym->name) > 0) { in perf_evsel__hists_browse()
1637 annotate_t = nr_options++; in perf_evsel__hists_browse()
1647 asprintf(&options[nr_options], "Annotate %s", in perf_evsel__hists_browse()
1649 annotate = nr_options++; in perf_evsel__hists_browse()
1655 asprintf(&options[nr_options], "Zoom %s %s(%d) thread", in perf_evsel__hists_browse()
1659 zoom_thread = nr_options++; in perf_evsel__hists_browse()
1662 asprintf(&options[nr_options], "Zoom %s %s DSO", in perf_evsel__hists_browse()
1665 zoom_dso = nr_options++; in perf_evsel__hists_browse()
1669 asprintf(&options[nr_options], "Browse map details") > 0) in perf_evsel__hists_browse()
1670 browse_map = nr_options++; in perf_evsel__hists_browse()
1676 if (asprintf(&options[nr_options], "Run scripts for samples of thread [%s]", in perf_evsel__hists_browse()
1678 scripts_comm = nr_options++; in perf_evsel__hists_browse()
1682 asprintf(&options[nr_options], "Run scripts for samples of symbol [%s]", in perf_evsel__hists_browse()
1684 scripts_symbol = nr_options++; in perf_evsel__hists_browse()
1687 if (asprintf(&options[nr_options], "Run scripts for all samples") > 0) in perf_evsel__hists_browse()
1688 scripts_all = nr_options++; in perf_evsel__hists_browse()
1690 if (is_report_browser(hbt) && asprintf(&options[nr_options], in perf_evsel__hists_browse()
1692 switch_data = nr_options++; in perf_evsel__hists_browse()
1694 options[nr_options++] = (char *)"Exit"; in perf_evsel__hists_browse()
1696 choice = ui__popup_menu(nr_options, options); in perf_evsel__hists_browse()
1698 if (choice == nr_options - 1) in perf_evsel__hists_browse()
1702 free_popup_options(options, nr_options - 1); in perf_evsel__hists_browse()
1815 free_popup_options(options, nr_options - 1); in perf_evsel__hists_browse()