aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xentrace/xentrace.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-07-04 16:02:46 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-07-04 16:02:46 +0000
commit763c04b3186a6fd878be6535e6d854a2c1236038 (patch)
tree78f4e62e612e8bf064bd333709249b5d03dc0901 /tools/xentrace/xentrace.c
parent3bbb722ab0e7860f490f14336cf9b8063ffb39b2 (diff)
downloadxen-763c04b3186a6fd878be6535e6d854a2c1236038.tar.gz
xen-763c04b3186a6fd878be6535e6d854a2c1236038.tar.bz2
xen-763c04b3186a6fd878be6535e6d854a2c1236038.zip
Rename fields in physinfo_t structure and add sockets/nodes
fields.
Diffstat (limited to 'tools/xentrace/xentrace.c')
-rw-r--r--tools/xentrace/xentrace.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/xentrace/xentrace.c b/tools/xentrace/xentrace.c
index 50988c90f8..f8236a22e0 100644
--- a/tools/xentrace/xentrace.c
+++ b/tools/xentrace/xentrace.c
@@ -273,7 +273,10 @@ unsigned int get_num_cpus()
xc_interface_close(xc_handle);
- return op.u.physinfo.ht_per_core * op.u.physinfo.cores;
+ return (op.u.physinfo.threads_per_core *
+ op.u.physinfo.cores_per_socket *
+ op.u.physinfo.sockets_per_node *
+ op.u.physinfo.nr_nodes);
}