Home
last modified time | relevance | path

Searched refs:num_cpus (Results 1 – 25 of 40) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/sched/
D__sched_cpucount.c34 int num_cpus; in __sched_cpucount_0100() local
35 num_cpus = sysconf(_SC_NPROCESSORS_CONF); in __sched_cpucount_0100()
36 cpusetp = CPU_ALLOC(num_cpus); in __sched_cpucount_0100()
39 size = CPU_ALLOC_SIZE(num_cpus); in __sched_cpucount_0100()
41 for (int cpu = 0; cpu < num_cpus; cpu++) { in __sched_cpucount_0100()
45 EXPECT_EQ("__sched_cpucount_0100", ret, num_cpus); in __sched_cpucount_0100()
60 int num_cpus; in __sched_cpucount_0200() local
61 num_cpus = sysconf(_SC_NPROCESSORS_CONF); in __sched_cpucount_0200()
62 cpusetp = CPU_ALLOC(num_cpus); in __sched_cpucount_0200()
65 size = CPU_ALLOC_SIZE(num_cpus); in __sched_cpucount_0200()
[all …]
/third_party/ltp/testcases/kernel/sched/tool/
Dtrace_sched.c295 int num_cpus = UP; /* assume machine is an UP machine. */ in main() local
325 if ((num_cpus = atoi(optarg)) == 0) in main()
327 else if (num_cpus < 0) { in main()
330 num_cpus); in main()
331 num_cpus = UP; in main()
334 num_thrd = num_thrd * num_cpus; in main()
443 "Scheduling policy: %d\n", num_thrd, num_cpus, in main()
450 for (proc_ndx = 0; proc_ndx < num_cpus; proc_ndx++) { in main()
/third_party/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_test03.c85 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */ in main() local
105 num_cpus = 0; in main()
131 num_cpus = atoi(num_cpus_p); in main()
206 (delta_cpu_time * 100) / (delta_time * num_cpus); in main()
209 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_def_task03.c82 int test_num, task_num, len, num_cpus; in main() local
103 num_cpus = 0; in main()
128 num_cpus = atoi(num_cpus_p); in main()
214 (delta_time * num_cpus); in main()
217 (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_def_task01.c87 int num_cpus, test_num, len; /* Total time = TIME_INTERVAL*num_cpus */ in main() local
105 num_cpus = 0; in main()
118 ((num_cpus = atoi(argv[4])) <= 0) || in main()
207 (delta_time * num_cpus); in main()
210 (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_def_task04.c85 int num_cpus; in main() local
106 num_cpus = 0; in main()
131 num_cpus = atoi(num_cpus_p); in main()
224 (delta_time * num_cpus); in main()
227 (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_test01.c85 int num_cpus; in main() local
106 num_cpus = 0; in main()
118 || ((num_cpus = atoi(argv[4])) <= 0) in main()
199 (delta_cpu_time * 100) / (delta_time * num_cpus); in main()
202 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_def_task02.c85 int num_cpus; in main() local
107 num_cpus = 0; in main()
132 num_cpus = atoi(num_cpus_p); in main()
218 (delta_time * num_cpus); in main()
221 (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_test04.c86 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */ in main() local
106 num_cpus = 0; in main()
132 num_cpus = atoi(num_cpus_p); in main()
217 (delta_cpu_time * 100) / (delta_time * num_cpus); in main()
220 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_test02.c88 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */ in main() local
110 num_cpus = 0; in main()
136 num_cpus = atoi(num_cpus_p); in main()
211 (delta_cpu_time * 100) / (delta_time * num_cpus); in main()
214 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
Drun_cpuctl_latency_test.sh102 num_cpus=`tst_ncpus`
103 log2 $num_cpus;
/third_party/libuv/src/unix/
Dqnx.c122 int num_cpus = _syspage_ptr->num_cpu; in uv_cpu_info() local
125 *count = num_cpus; in uv_cpu_info()
126 *cpu_infos = uv__malloc(num_cpus * sizeof(**cpu_infos)); in uv_cpu_info()
130 for (i = 0; i < num_cpus; i++) { in uv_cpu_info()
/third_party/gstreamer/gstreamer/plugins/tracers/
Dgstrusage.c57 static glong num_cpus = 1; variable
250 avg_cpuload = (guint) gst_util_uint64_scale (tproc / num_cpus, in do_stats()
255 cur_cpuload = (guint) gst_util_uint64_scale (dtproc / num_cpus, in do_stats()
309 if ((num_cpus = sysconf (_SC_NPROCESSORS_ONLN)) == -1) { in gst_rusage_tracer_class_init()
311 if ((num_cpus = sysconf (_SC_NPROCESSORS_CONF)) == -1) { in gst_rusage_tracer_class_init()
313 num_cpus = 1; in gst_rusage_tracer_class_init()
316 GST_DEBUG ("rusage: num_cpus=%ld", num_cpus); in gst_rusage_tracer_class_init()
/third_party/json/benchmarks/thirdparty/benchmark/src/
Dreporter.cc44 Out << "Run on (" << info.num_cpus << " X " in PrintBasicContext()
46 << ((info.num_cpus > 1) ? "s" : "") << ")\n"; in PrintBasicContext()
53 Out << " (x" << (info.num_cpus / CInfo.num_sharing) << ")"; in PrintBasicContext()
Dsysinfo.cc207 bool CpuScalingEnabled(int num_cpus) { in CpuScalingEnabled() argument
209 if (num_cpus <= 0) return false; in CpuScalingEnabled()
215 for (int cpu = 0; cpu < num_cpus; ++cpu) { in CpuScalingEnabled()
582 : num_cpus(GetNumCPUs()), in CPUInfo()
585 scaling_enabled(CpuScalingEnabled(num_cpus)) {} in CPUInfo()
Djson_reporter.cc85 out << indent << FormatKV("num_cpus", static_cast<int64_t>(info.num_cpus)) in ReportContext()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/cache/
Dcache_numa.cc32 auto num_cpus = hw_->GetCpuCount(); in NumaMemoryPool() local
33 memory_segments_.reserve(num_cpus); in NumaMemoryPool()
34 arena_list_.reserve(num_cpus); in NumaMemoryPool()
35 mux_ = std::make_unique<std::mutex[]>(num_cpus); in NumaMemoryPool()
36 auto num_memory_nodes = num_cpus; in NumaMemoryPool()
/third_party/ltp/testcases/kernel/syscalls/ptrace/
Dptrace07.c84 int num_cpus = tst_ncpus(); in do_test() local
96 for (i = 0; i < num_cpus; i++) { in do_test()
170 for (i = 0; i < num_cpus; i++) { in do_test()
/third_party/benchmark/src/
Dreporter.cc48 Out << "Run on (" << info.num_cpus << " X " in PrintBasicContext()
50 << ((info.num_cpus > 1) ? "s" : "") << ")\n"; in PrintBasicContext()
57 Out << " (x" << (info.num_cpus / CInfo.num_sharing) << ")"; in PrintBasicContext()
Dsysinfo.cc215 CPUInfo::Scaling CpuScaling(int num_cpus) { in CpuScaling() argument
217 if (num_cpus <= 0) return CPUInfo::Scaling::UNKNOWN; in CpuScaling()
225 for (int cpu = 0; cpu < num_cpus; ++cpu) { in CpuScaling()
713 : num_cpus(GetNumCPUs()), in CPUInfo()
714 scaling(CpuScaling(num_cpus)), in CPUInfo()
/third_party/gstreamer/gstplugins_bad/ext/mpeg2enc/
Dgstmpeg2encoptions.cc293 num_cpus = sysconf (_SC_NPROCESSORS_ONLN); in GstMpeg2EncOptions()
297 num_cpus = si.dwNumberOfProcessors; in GstMpeg2EncOptions()
299 if (num_cpus < 0) in GstMpeg2EncOptions()
300 num_cpus = 1; in GstMpeg2EncOptions()
301 if (num_cpus > 32) in GstMpeg2EncOptions()
302 num_cpus = 32; in GstMpeg2EncOptions()
/third_party/abseil-cpp/absl/base/internal/
Dsysinfo.cc275 ABSL_CONST_INIT static int num_cpus = 0; variable
281 &init_num_cpus_once, []() { num_cpus = GetNumCPUs(); }); in NumCPUs()
282 return num_cpus; in NumCPUs()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
Dsysinfo.cc342 ABSL_CONST_INIT static int num_cpus = 0; variable
348 &init_num_cpus_once, []() { num_cpus = GetNumCPUs(); }); in NumCPUs()
349 return num_cpus; in NumCPUs()
/third_party/mesa3d/src/gallium/auxiliary/hud/
Dhud_cpufreq.c130 int num_cpus = hud_get_num_cpufreq(0); in hud_cpufreq_graph_install() local
131 if (num_cpus <= 0) in hud_cpufreq_graph_install()
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_winsys.h96 uint32_t num_cpus; /* Number of CPUs. */ member

12