stat_config 76 tools/perf/builtin-script.c static struct perf_stat_config stat_config; stat_config 1753 tools/perf/builtin-script.c perf_stat__print_shadow_stats(&stat_config, ev2, stat_config 1956 tools/perf/builtin-script.c scripting_ops->process_stat(&stat_config, counter, tstamp); stat_config 3261 tools/perf/builtin-script.c perf_stat_process_counter(&stat_config, counter); stat_config 3272 tools/perf/builtin-script.c perf_event__read_stat_config(&stat_config, &event->stat_config); stat_config 3437 tools/perf/builtin-script.c .stat_config = process_stat_config_event, stat_config 181 tools/perf/builtin-stat.c static struct perf_stat_config stat_config = { stat_config 210 tools/perf/builtin-stat.c for (i = 0; i < stat_config.stats_num; i++) stat_config 211 tools/perf/builtin-stat.c perf_stat__reset_shadow_per_stat(&stat_config.stats[i]); stat_config 312 tools/perf/builtin-stat.c fprintf(stat_config.output, stat_config 334 tools/perf/builtin-stat.c if (ret == 0 && perf_stat_process_counter(&stat_config, counter)) stat_config 354 tools/perf/builtin-stat.c update_stats(&walltime_nsecs_stats, stat_config.interval * 1000000); stat_config 360 tools/perf/builtin-stat.c if (stat_config.initial_delay) stat_config 361 tools/perf/builtin-stat.c usleep(stat_config.initial_delay * USEC_PER_MSEC); stat_config 368 tools/perf/builtin-stat.c if (!target__none(&target) || stat_config.initial_delay) stat_config 425 tools/perf/builtin-stat.c int interval = stat_config.interval; stat_config 426 tools/perf/builtin-stat.c int times = stat_config.times; stat_config 427 tools/perf/builtin-stat.c int timeout = stat_config.timeout; stat_config 462 tools/perf/builtin-stat.c if (create_perf_stat_counter(counter, &stat_config, &target) < 0) { stat_config 517 tools/perf/builtin-stat.c if (l > stat_config.unit_width) stat_config 518 tools/perf/builtin-stat.c stat_config.unit_width = l; stat_config 545 tools/perf/builtin-stat.c err = perf_event__synthesize_stat_events(&stat_config, NULL, evsel_list, stat_config 572 tools/perf/builtin-stat.c wait4(child_pid, &status, 0, &stat_config.ru_data); stat_config 602 tools/perf/builtin-stat.c if (stat_config.walltime_run_table) stat_config 603 tools/perf/builtin-stat.c stat_config.walltime_run[run_idx] = t1 - t0; stat_config 657 tools/perf/builtin-stat.c perf_evlist__print_counters(evsel_list, &stat_config, &target, stat_config 665 tools/perf/builtin-stat.c if ((child_pid == -1) || stat_config.interval) stat_config 715 tools/perf/builtin-stat.c stat_config.metric_only = !unset; stat_config 723 tools/perf/builtin-stat.c return metricgroup__parse_groups(opt, str, &stat_config.metric_events); stat_config 734 tools/perf/builtin-stat.c OPT_BOOLEAN('i', "no-inherit", &stat_config.no_inherit, stat_config 744 tools/perf/builtin-stat.c OPT_BOOLEAN(0, "scale", &stat_config.scale, stat_config 748 tools/perf/builtin-stat.c OPT_INTEGER('r', "repeat", &stat_config.run_count, stat_config 750 tools/perf/builtin-stat.c OPT_BOOLEAN(0, "table", &stat_config.walltime_run_table, stat_config 752 tools/perf/builtin-stat.c OPT_BOOLEAN('n', "null", &stat_config.null_run, stat_config 763 tools/perf/builtin-stat.c OPT_SET_UINT('A', "no-aggr", &stat_config.aggr_mode, stat_config 765 tools/perf/builtin-stat.c OPT_BOOLEAN(0, "no-merge", &stat_config.no_merge, "Do not merge identical named events"), stat_config 766 tools/perf/builtin-stat.c OPT_STRING('x', "field-separator", &stat_config.csv_sep, "separator", stat_config 778 tools/perf/builtin-stat.c OPT_UINTEGER('I', "interval-print", &stat_config.interval, stat_config 781 tools/perf/builtin-stat.c OPT_INTEGER(0, "interval-count", &stat_config.times, stat_config 783 tools/perf/builtin-stat.c OPT_BOOLEAN(0, "interval-clear", &stat_config.interval_clear, stat_config 785 tools/perf/builtin-stat.c OPT_UINTEGER(0, "timeout", &stat_config.timeout, stat_config 787 tools/perf/builtin-stat.c OPT_SET_UINT(0, "per-socket", &stat_config.aggr_mode, stat_config 789 tools/perf/builtin-stat.c OPT_SET_UINT(0, "per-die", &stat_config.aggr_mode, stat_config 791 tools/perf/builtin-stat.c OPT_SET_UINT(0, "per-core", &stat_config.aggr_mode, stat_config 793 tools/perf/builtin-stat.c OPT_SET_UINT(0, "per-thread", &stat_config.aggr_mode, stat_config 795 tools/perf/builtin-stat.c OPT_UINTEGER('D', "delay", &stat_config.initial_delay, stat_config 797 tools/perf/builtin-stat.c OPT_CALLBACK_NOOPT(0, "metric-only", &stat_config.metric_only, NULL, stat_config 877 tools/perf/builtin-stat.c switch (stat_config.aggr_mode) { stat_config 879 tools/perf/builtin-stat.c if (cpu_map__build_socket_map(evsel_list->core.cpus, &stat_config.aggr_map)) { stat_config 883 tools/perf/builtin-stat.c stat_config.aggr_get_id = perf_stat__get_socket_cached; stat_config 886 tools/perf/builtin-stat.c if (cpu_map__build_die_map(evsel_list->core.cpus, &stat_config.aggr_map)) { stat_config 890 tools/perf/builtin-stat.c stat_config.aggr_get_id = perf_stat__get_die_cached; stat_config 893 tools/perf/builtin-stat.c if (cpu_map__build_core_map(evsel_list->core.cpus, &stat_config.aggr_map)) { stat_config 897 tools/perf/builtin-stat.c stat_config.aggr_get_id = perf_stat__get_core_cached; stat_config 902 tools/perf/builtin-stat.c &stat_config.aggr_map)) { stat_config 906 tools/perf/builtin-stat.c stat_config.aggr_get_id = perf_stat__get_core_cached; stat_config 922 tools/perf/builtin-stat.c stat_config.cpus_aggr_map = perf_cpu_map__empty_new(nr + 1); stat_config 923 tools/perf/builtin-stat.c return stat_config.cpus_aggr_map ? 0 : -ENOMEM; stat_config 928 tools/perf/builtin-stat.c perf_cpu_map__put(stat_config.aggr_map); stat_config 929 tools/perf/builtin-stat.c perf_cpu_map__put(stat_config.cpus_aggr_map); stat_config 930 tools/perf/builtin-stat.c stat_config.aggr_map = NULL; stat_config 931 tools/perf/builtin-stat.c stat_config.cpus_aggr_map = NULL; stat_config 1050 tools/perf/builtin-stat.c switch (stat_config.aggr_mode) { stat_config 1052 tools/perf/builtin-stat.c if (perf_env__build_socket_map(env, evsel_list->core.cpus, &stat_config.aggr_map)) { stat_config 1056 tools/perf/builtin-stat.c stat_config.aggr_get_id = perf_stat__get_socket_file; stat_config 1059 tools/perf/builtin-stat.c if (perf_env__build_die_map(env, evsel_list->core.cpus, &stat_config.aggr_map)) { stat_config 1063 tools/perf/builtin-stat.c stat_config.aggr_get_id = perf_stat__get_die_file; stat_config 1066 tools/perf/builtin-stat.c if (perf_env__build_core_map(env, evsel_list->core.cpus, &stat_config.aggr_map)) { stat_config 1070 tools/perf/builtin-stat.c stat_config.aggr_get_id = perf_stat__get_core_file; stat_config 1254 tools/perf/builtin-stat.c if (stat_config.null_run) stat_config 1267 tools/perf/builtin-stat.c &stat_config.metric_events); stat_config 1305 tools/perf/builtin-stat.c stat_config.metric_only = true; stat_config 1324 tools/perf/builtin-stat.c if (stat_config.aggr_mode != AGGR_GLOBAL && stat_config 1325 tools/perf/builtin-stat.c stat_config.aggr_mode != AGGR_CORE) { stat_config 1329 tools/perf/builtin-stat.c stat_config.aggr_mode = AGGR_CORE; stat_config 1336 tools/perf/builtin-stat.c stat_config.metric_only = true; stat_config 1434 tools/perf/builtin-stat.c if (stat_config.run_count != 1 || forever) { stat_config 1463 tools/perf/builtin-stat.c perf_stat_process_counter(&stat_config, counter); stat_config 1468 tools/perf/builtin-stat.c if (stat_config.interval && stat_round->time) { stat_config 1485 tools/perf/builtin-stat.c perf_event__read_stat_config(&stat_config, &event->stat_config); stat_config 1494 tools/perf/builtin-stat.c stat_config.aggr_mode = st->aggr_mode; stat_config 1601 tools/perf/builtin-stat.c .stat_config = process_stat_config_event, stat_config 1643 tools/perf/builtin-stat.c stat_config.output = stderr; stat_config 1714 tools/perf/builtin-stat.c if (stat_config.csv_sep) { stat_config 1715 tools/perf/builtin-stat.c stat_config.csv_output = true; stat_config 1716 tools/perf/builtin-stat.c if (!strcmp(stat_config.csv_sep, "\\t")) stat_config 1717 tools/perf/builtin-stat.c stat_config.csv_sep = "\t"; stat_config 1719 tools/perf/builtin-stat.c stat_config.csv_sep = DEFAULT_SEPARATOR; stat_config 1728 tools/perf/builtin-stat.c interval = stat_config.interval; stat_config 1729 tools/perf/builtin-stat.c timeout = stat_config.timeout; stat_config 1744 tools/perf/builtin-stat.c if (stat_config.metric_only && stat_config.aggr_mode == AGGR_THREAD) { stat_config 1749 tools/perf/builtin-stat.c if (stat_config.metric_only && stat_config.run_count > 1) { stat_config 1754 tools/perf/builtin-stat.c if (stat_config.walltime_run_table && stat_config.run_count <= 1) { stat_config 1787 tools/perf/builtin-stat.c stat_config.output = output; stat_config 1792 tools/perf/builtin-stat.c if (stat_config.csv_output) { stat_config 1800 tools/perf/builtin-stat.c stat_config.big_num = false; stat_config 1802 tools/perf/builtin-stat.c stat_config.big_num = false; stat_config 1810 tools/perf/builtin-stat.c if ((stat_config.run_count == 1) && target__none(&target)) stat_config 1811 tools/perf/builtin-stat.c stat_config.ru_display = true; stat_config 1813 tools/perf/builtin-stat.c if (stat_config.run_count < 0) { stat_config 1817 tools/perf/builtin-stat.c } else if (stat_config.run_count == 0) { stat_config 1819 tools/perf/builtin-stat.c stat_config.run_count = 1; stat_config 1822 tools/perf/builtin-stat.c if (stat_config.walltime_run_table) { stat_config 1823 tools/perf/builtin-stat.c stat_config.walltime_run = zalloc(stat_config.run_count * sizeof(stat_config.walltime_run[0])); stat_config 1824 tools/perf/builtin-stat.c if (!stat_config.walltime_run) { stat_config 1830 tools/perf/builtin-stat.c if ((stat_config.aggr_mode == AGGR_THREAD) && stat_config 1846 tools/perf/builtin-stat.c if (((stat_config.aggr_mode != AGGR_GLOBAL && stat_config 1847 tools/perf/builtin-stat.c stat_config.aggr_mode != AGGR_THREAD) || nr_cgroups) && stat_config 1863 tools/perf/builtin-stat.c if ((stat_config.aggr_mode == AGGR_THREAD) && (target.system_wide)) stat_config 1883 tools/perf/builtin-stat.c if (stat_config.aggr_mode == AGGR_THREAD) { stat_config 1886 tools/perf/builtin-stat.c if (runtime_stat_new(&stat_config, stat_config 1893 tools/perf/builtin-stat.c if (stat_config.times && interval) stat_config 1895 tools/perf/builtin-stat.c else if (stat_config.times && !interval) { stat_config 1935 tools/perf/builtin-stat.c stat_config.identifier = !(STAT_RECORD && perf_stat.data.is_pipe); stat_config 1951 tools/perf/builtin-stat.c for (run_idx = 0; forever || run_idx < stat_config.run_count; run_idx++) { stat_config 1952 tools/perf/builtin-stat.c if (stat_config.run_count != 1 && verbose > 0) stat_config 2008 tools/perf/builtin-stat.c zfree(&stat_config.walltime_run); stat_config 2015 tools/perf/builtin-stat.c runtime_stat_delete(&stat_config); stat_config 377 tools/perf/lib/include/perf/event.h struct perf_record_stat_config stat_config; stat_config 29 tools/perf/tests/stat.c struct perf_record_stat_config *config = &event->stat_config; stat_config 30 tools/perf/tests/stat.c struct perf_stat_config stat_config; stat_config 42 tools/perf/tests/stat.c perf_event__read_stat_config(&stat_config, config); stat_config 44 tools/perf/tests/stat.c TEST_ASSERT_VAL("wrong aggr_mode", stat_config.aggr_mode == AGGR_CORE); stat_config 45 tools/perf/tests/stat.c TEST_ASSERT_VAL("wrong scale", stat_config.scale == 1); stat_config 46 tools/perf/tests/stat.c TEST_ASSERT_VAL("wrong interval", stat_config.interval == 1); stat_config 52 tools/perf/tests/stat.c struct perf_stat_config stat_config = { stat_config 59 tools/perf/tests/stat.c !perf_event__synthesize_stat_config(NULL, &stat_config, process_stat_config_event, NULL)); stat_config 520 tools/perf/util/session.c if (tool->stat_config == NULL) stat_config 521 tools/perf/util/session.c tool->stat_config = process_event_stat_config_stub; stat_config 886 tools/perf/util/session.c size = event->stat_config.nr * sizeof(event->stat_config.data[0]); stat_config 888 tools/perf/util/session.c mem_bswap_64(&event->stat_config.nr, size); stat_config 1553 tools/perf/util/session.c return tool->stat_config(session, event); stat_config 454 tools/perf/util/stat.c perf_event__read_stat_config(&sc, &event->stat_config); stat_config 72 tools/perf/util/tool.h stat_config,