Home
last modified time | relevance | path

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

/xen-4.10.0-shim-comet/xen/common/
A Dsysctl.c349 unsigned int i, num_cpus; in do_sysctl() local
352 num_cpus = cpumask_last(&cpu_online_map) + 1; in do_sysctl()
357 if ( num_cpus > ti->num_cpus ) in do_sysctl()
358 num_cpus = ti->num_cpus; in do_sysctl()
359 for ( i = 0; i < num_cpus; ++i ) in do_sysctl()
384 i = num_cpus; in do_sysctl()
386 if ( !ret && (ti->num_cpus != i) ) in do_sysctl()
388 ti->num_cpus = i; in do_sysctl()
390 u.cputopoinfo.num_cpus) ) in do_sysctl()
/xen-4.10.0-shim-comet/tools/libxl/
A Dlibxl.c412 unsigned num_cpus = 0; in libxl_get_cpu_topology() local
415 if (xc_cputopoinfo(ctx->xch, &num_cpus, NULL)) in libxl_get_cpu_topology()
421 cputopo = libxl__zalloc(gc, sizeof(*cputopo) * num_cpus); in libxl_get_cpu_topology()
423 if (xc_cputopoinfo(ctx->xch, &num_cpus, cputopo)) { in libxl_get_cpu_topology()
428 ret = libxl__zalloc(NOGC, sizeof(libxl_cputopology) * num_cpus); in libxl_get_cpu_topology()
430 for (i = 0; i < num_cpus; i++) { in libxl_get_cpu_topology()
439 *nb_cpu_out = num_cpus; in libxl_get_cpu_topology()
/xen-4.10.0-shim-comet/tools/xenstat/libxenstat/src/
A Dxenstat_priv.h47 unsigned int num_cpus; member
A Dxenstat.c187 node->num_cpus = physinfo.nr_cpus; in xenstat_get_node()
357 return node->num_cpus; in xenstat_node_num_cpus()
/xen-4.10.0-shim-comet/tools/xl/
A Dxl_parse.c312 int num_cpus, bool is_hard) in parse_vcpu_affinity() argument
328 if (buf || num_cpus > b_info->max_vcpus) in parse_vcpu_affinity()
329 num_cpus = b_info->max_vcpus; in parse_vcpu_affinity()
332 b_info->num_vcpu_hard_affinity = num_cpus; in parse_vcpu_affinity()
333 b_info->vcpu_hard_affinity = xmalloc(num_cpus * sizeof(libxl_bitmap)); in parse_vcpu_affinity()
336 b_info->num_vcpu_soft_affinity = num_cpus; in parse_vcpu_affinity()
337 b_info->vcpu_soft_affinity = xmalloc(num_cpus * sizeof(libxl_bitmap)); in parse_vcpu_affinity()
344 while ((buf = xlu_cfg_get_listitem(cpus, j)) != NULL && j < num_cpus) { in parse_vcpu_affinity()
1043 if (!xlu_cfg_get_list (config, "cpus", &cpus, &num_cpus, 1) || in parse_config_data()
1048 if (!xlu_cfg_get_list (config, "cpus_soft", &cpus, &num_cpus, 1) || in parse_config_data()
[all …]
/xen-4.10.0-shim-comet/tools/python/xen/lowlevel/xc/
A Dxc.c1028 unsigned i, num_cpus = 0; in pyxc_topologyinfo() local
1032 if ( xc_cputopoinfo(self->xc_handle, &num_cpus, NULL) != 0 ) in pyxc_topologyinfo()
1035 cputopo = calloc(num_cpus, sizeof(*cputopo)); in pyxc_topologyinfo()
1039 if ( xc_cputopoinfo(self->xc_handle, &num_cpus, cputopo) != 0 ) in pyxc_topologyinfo()
1046 for ( i = 0; i < num_cpus; i++ ) in pyxc_topologyinfo()
1082 ret_obj = Py_BuildValue("{s:i}", "max_cpu_index", num_cpus + 1); in pyxc_topologyinfo()
/xen-4.10.0-shim-comet/tools/libxc/
A Dxc_misc.c240 sysctl.u.cputopoinfo.num_cpus = *max_cpus; in xc_cputopoinfo()
248 *max_cpus = sysctl.u.cputopoinfo.num_cpus; in xc_cputopoinfo()
/xen-4.10.0-shim-comet/xen/include/public/
A Dsysctl.h464 uint32_t num_cpus; member

Completed in 24 milliseconds