Searched refs:cputopo (Results 1 – 7 of 7) sorted by relevance
/xen/xen/common/ |
A D | sysctl.c | 362 if ( !guest_handle_is_null(ti->cputopo) ) in do_sysctl() 364 struct xen_sysctl_cputopo cputopo = { }; in do_sysctl() local 372 cputopo.core = cpu_to_core(i); in do_sysctl() 373 cputopo.socket = cpu_to_socket(i); in do_sysctl() 374 cputopo.node = cpu_to_node(i); in do_sysctl() 375 if ( cputopo.node == NUMA_NO_NODE ) in do_sysctl() 376 cputopo.node = XEN_INVALID_NODE_ID; in do_sysctl() 380 cputopo.core = XEN_INVALID_CORE_ID; in do_sysctl() 381 cputopo.socket = XEN_INVALID_SOCKET_ID; in do_sysctl() 382 cputopo.node = XEN_INVALID_NODE_ID; in do_sysctl() [all …]
|
/xen/tools/misc/ |
A D | xenpm.c | 412 xc_cputopo_t *cputopo = NULL; in signal_int_handler() local 422 cputopo = calloc(max_cpus, sizeof(*cputopo)); in signal_int_handler() 423 if ( cputopo == NULL ) in signal_int_handler() 533 socket_ids[j] = cputopo[i].socket; in signal_int_handler() 542 core_ids[j] = cputopo[i].core; in signal_int_handler() 610 free(cputopo); in signal_int_handler() 1017 xc_cputopo_t *cputopo = NULL; in cpu_topology_func() local 1029 cputopo = calloc(max_cpus, sizeof(*cputopo)); in cpu_topology_func() 1030 if ( cputopo == NULL ) in cpu_topology_func() 1051 i, cputopo[i].core, cputopo[i].socket, cputopo[i].node); in cpu_topology_func() [all …]
|
/xen/tools/libxc/ |
A D | xc_misc.c | 232 xc_cputopo_t *cputopo) in xc_cputopoinfo() argument 236 DECLARE_HYPERCALL_BOUNCE(cputopo, *max_cpus * sizeof(*cputopo), in xc_cputopoinfo() 239 if ( (ret = xc_hypercall_bounce_pre(xch, cputopo)) ) in xc_cputopoinfo() 243 set_xen_guest_handle(sysctl.u.cputopoinfo.cputopo, cputopo); in xc_cputopoinfo() 253 xc_hypercall_bounce_post(xch, cputopo); in xc_cputopoinfo()
|
/xen/tools/libxl/ |
A D | libxl.c | 415 xc_cputopo_t *cputopo; in libxl_get_cpu_topology() local 427 cputopo = libxl__zalloc(gc, sizeof(*cputopo) * num_cpus); in libxl_get_cpu_topology() 429 if (xc_cputopoinfo(ctx->xch, &num_cpus, cputopo)) { in libxl_get_cpu_topology() 437 #define V(map, i, invalid) ( cputopo[i].map == invalid) ? \ in libxl_get_cpu_topology() 438 LIBXL_CPUTOPOLOGY_INVALID_ENTRY : cputopo[i].map in libxl_get_cpu_topology()
|
/xen/tools/python/xen/lowlevel/xc/ |
A D | xc.c | 947 xc_cputopo_t *cputopo = NULL; in pyxc_topologyinfo() local 955 cputopo = calloc(num_cpus, sizeof(*cputopo)); in pyxc_topologyinfo() 956 if ( cputopo == NULL ) in pyxc_topologyinfo() 959 if ( xc_cputopoinfo(self->xc_handle, &num_cpus, cputopo) != 0 ) in pyxc_topologyinfo() 968 if ( cputopo[i].core == XEN_INVALID_CORE_ID ) in pyxc_topologyinfo() 974 PyObject *pyint = PyLongOrInt_FromLong(cputopo[i].core); in pyxc_topologyinfo() 979 if ( cputopo[i].socket == XEN_INVALID_SOCKET_ID ) in pyxc_topologyinfo() 985 PyObject *pyint = PyLongOrInt_FromLong(cputopo[i].socket); in pyxc_topologyinfo() 990 if ( cputopo[i].node == XEN_INVALID_NODE_ID ) in pyxc_topologyinfo() 996 PyObject *pyint = PyLongOrInt_FromLong(cputopo[i].node); in pyxc_topologyinfo() [all …]
|
/xen/xen/include/public/ |
A D | sysctl.h | 503 XEN_GUEST_HANDLE_64(xen_sysctl_cputopo_t) cputopo;
|
/xen/tools/libxc/include/ |
A D | xenctrl.h | 1245 xc_cputopo_t *cputopo);
|
Completed in 24 milliseconds