struct cpu_topology { /* The number of unique package_cpus_lists below. */
u32 package_cpus_lists; /* The number of unique die_cpu_lists below. */
u32 die_cpus_lists; /* The number of unique core_cpu_lists below. */
u32 core_cpus_lists; /* * An array of strings where each string is unique and read from * /sys/devices/system/cpu/cpuX/topology/package_cpus_list. From the ABI * each of these is a human-readable list of CPUs sharing the same * physical_package_id. The format is like 0-3, 8-11, 14,17.
*/ constchar **package_cpus_list; /* * An array of string where each string is unique and from * /sys/devices/system/cpu/cpuX/topology/die_cpus_list. From the ABI * each of these is a human-readable list of CPUs within the same die. * The format is like 0-3, 8-11, 14,17.
*/ constchar **die_cpus_list; /* * An array of string where each string is unique and from * /sys/devices/system/cpu/cpuX/topology/core_cpus_list. From the ABI * each of these is a human-readable list of CPUs within the same * core. The format is like 0-3, 8-11, 14,17.
*/ constchar **core_cpus_list;
};
/* * The topology for online CPUs, lazily created.
*/ conststruct cpu_topology *online_topology(void);
struct cpu_topology *cpu_topology__new(void); void cpu_topology__delete(struct cpu_topology *tp); /* Determine from the core list whether SMT was enabled. */ bool cpu_topology__smt_on(conststruct cpu_topology *topology); /* Are the sets of SMT siblings all enabled or all disabled in user_requested_cpus. */ bool cpu_topology__core_wide(conststruct cpu_topology *topology, constchar *user_requested_cpu_list);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.