/tools/power/cpupower/utils/idle_monitor/ |
A D | mperf_monitor.c | 229 for (cpu = 0; cpu < cpu_count; cpu++) { in mperf_start() 242 for (cpu = 0; cpu < cpu_count; cpu++) { in mperf_stop() 344 is_valid = calloc(cpu_count, sizeof(int)); in mperf_register() 345 mperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 346 aperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 347 mperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 348 aperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 349 tsc_at_measure_start = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 350 tsc_at_measure_end = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 351 time_start = calloc(cpu_count, sizeof(struct timespec)); in mperf_register() [all …]
|
A D | cpuidle_sysfs.c | 48 for (cpu = 0; cpu < cpu_count; cpu++) { in cpuidle_start() 67 for (cpu = 0; cpu < cpu_count; cpu++) { in cpuidle_stop() 178 previous_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register() 179 current_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register() 180 for (num = 0; num < cpu_count; num++) { in cpuidle_register() 195 for (num = 0; num < cpu_count; num++) { in cpuidle_unregister()
|
A D | hsw_ext_idle.c | 119 for (cpu = 0; cpu < cpu_count; cpu++) { in hsw_ext_start() 136 for (cpu = 0; cpu < cpu_count; cpu++) { in hsw_ext_stop() 161 is_valid = calloc(cpu_count, sizeof(int)); in hsw_ext_register() 163 previous_count[num] = calloc(cpu_count, in hsw_ext_register() 165 current_count[num] = calloc(cpu_count, in hsw_ext_register()
|
A D | snb_idle.c | 117 for (cpu = 0; cpu < cpu_count; cpu++) { in snb_start() 134 for (cpu = 0; cpu < cpu_count; cpu++) { in snb_stop() 166 is_valid = calloc(cpu_count, sizeof(int)); in snb_register() 168 previous_count[num] = calloc(cpu_count, in snb_register() 170 current_count[num] = calloc(cpu_count, in snb_register()
|
A D | nhm_idle.c | 134 for (cpu = 0; cpu < cpu_count; cpu++) { in nhm_start() 153 for (cpu = 0; cpu < cpu_count; cpu++) { in nhm_stop() 180 is_valid = calloc(cpu_count, sizeof(int)); in intel_nhm_register() 182 previous_count[num] = calloc(cpu_count, in intel_nhm_register() 184 current_count[num] = calloc(cpu_count, in intel_nhm_register()
|
A D | cpupower-monitor.c | 31 int cpu_count; variable 348 for (cpu = 0; cpu < cpu_count; cpu++) in do_interval_measure() 360 for (cpu = 0; cpu < cpu_count; cpu++) in do_interval_measure() 412 cpu_count = get_cpu_topology(&cpu_top); in cmd_monitor() 413 if (cpu_count < 0) { in cmd_monitor() 425 dprint("System has up to %d CPU cores\n", cpu_count); in cmd_monitor() 458 cpu_top.pkgs, cpu_top.cores, cpu_count); in cmd_monitor() 475 for (cpu = 0; cpu < cpu_count; cpu++) { in cmd_monitor()
|
A D | amd_fam14h_idle.c | 233 for (cpu = 0; cpu < cpu_count; cpu++) in amd_fam14h_start() 253 for (cpu = 0; cpu < cpu_count; cpu++) in amd_fam14h_stop() 294 previous_count[num] = calloc(cpu_count, in amd_fam14h_register() 296 current_count[num] = calloc(cpu_count, in amd_fam14h_register()
|
A D | cpupower-monitor.h | 28 extern int cpu_count;
|
/tools/testing/selftests/rcutorture/bin/ |
A D | kvm-test-1-run.sh | 146 cpu_count=`configNR_CPUS.sh $resdir/ConfigFragment` 147 cpu_count=`configfrag_boot_cpus "$boot_args_in" "$config_template" "$cpu_count"` 148 if test "$cpu_count" -gt "$TORTURE_ALLOTED_CPUS" 150 echo CPU count limited from $cpu_count to $TORTURE_ALLOTED_CPUS | tee -a $resdir/Warnings 151 cpu_count=$TORTURE_ALLOTED_CPUS 153 qemu_args="`specify_qemu_cpus "$QEMU" "$qemu_args" "$cpu_count"`" 209 echo "# TORTURE_CPU_COUNT=$cpu_count" >> $resdir/qemu-cmd
|
A D | kvm-test-1-run-batch.sh | 80 affinity_export="`awk -f $T/cpubatches.awk -v cpu_count="$cpu_count" -v scenario=$i < /dev/null`"
|
A D | kvm.sh | 337 cpu_count=`configNR_CPUS.sh $T/KCONFIG_ARG` 339 cpu_count=`configNR_CPUS.sh $CONFIGFRAG/$CF1` 341 cpu_count=`configfrag_boot_cpus "$TORTURE_BOOTARGS" "$CONFIGFRAG/$CF1" "$cpu_count"` 342 cpu_count=`configfrag_boot_maxcpus "$TORTURE_BOOTARGS" "$CONFIGFRAG/$CF1" "$cpu_count"` 343 echo 'scenariocpu["'"$CF1"'"] = '"$cpu_count"';' >> $T/cfgcpu.awk
|
/tools/power/x86/intel-speed-select/ |
A D | isst-core-tpmi.c | 295 int ret, cpu_count; in tpmi_get_coremask_info() local 308 ctdp_level->core_cpumask, &cpu_count); in tpmi_get_coremask_info() 309 ctdp_level->cpu_count = cpu_count; in tpmi_get_coremask_info() 312 id->cpu, config_index, ctdp_level->cpu_count); in tpmi_get_coremask_info() 408 int ret, cpu_count; in _pbf_get_coremask_info() local 421 pbf_info->core_cpumask, &cpu_count); in _pbf_get_coremask_info() 424 id->cpu, config_index, cpu_count); in _pbf_get_coremask_info()
|
A D | isst-core-mbox.c | 508 ctdp_level->cpu_count = 0; in mbox_get_coremask_info() 511 int cpu_count = 0; in mbox_get_coremask_info() local 527 &cpu_count); in mbox_get_coremask_info() 528 ctdp_level->cpu_count += cpu_count; in mbox_get_coremask_info() 530 config_index, i, ctdp_level->cpu_count); in mbox_get_coremask_info()
|
A D | isst-daemon.c | 100 if (ctdp_level.cpu_count) { in process_level_change()
|
A D | isst.h | 160 int cpu_count; member
|
A D | isst-config.c | 1559 if (ctdp_level.cpu_count) { in set_tdp_level_for_cpu()
|
/tools/accounting/ |
A D | getdelays.c | 219 (unsigned long long)(t)->cpu_count, \ 223 average_ms((double)(t)->cpu_delay_total, (t)->cpu_count), \ 231 (unsigned long long)(t)->cpu_count, \ 235 average_ms((double)(t)->cpu_delay_total, (t)->cpu_count)); \
|
A D | delaytop.c | 106 unsigned long long cpu_count; member 514 SET_TASK_STAT(task_count, cpu_count); in fetch_and_fill_task_info() 594 avg1 = average_ms(t1->cpu_delay_total, t1->cpu_count); in compare_tasks() 595 avg2 = average_ms(t2->cpu_delay_total, t2->cpu_count); in compare_tasks() 756 average_ms(tasks[i].cpu_delay_total, tasks[i].cpu_count), in display_results()
|
/tools/testing/selftests/drivers/net/hw/ |
A D | rss_input_xfrm.py | 32 if multiprocessing.cpu_count() < 2:
|
/tools/testing/kunit/ |
A D | kunit.py | 322 if (ncpu := os.cpu_count()) is not None:
|
/tools/power/x86/turbostat/ |
A D | turbostat.c | 5942 int cpu_count; in set_node_data() local 5948 cpu_count = 0; in set_node_data() 5959 cpu_count++; in set_node_data() 5967 cpu_count++; in set_node_data() 5974 if (cpu_count >= topo.max_cpu_num) in set_node_data()
|
/tools/testing/selftests/net/openvswitch/ |
A D | ovs-dpctl.py | 1969 nproc = multiprocessing.cpu_count()
|