1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_CPUTOPO_H
3 #define __PERF_CPUTOPO_H
5 #include <linux/types.h>
13 char **thread_siblings;
16 struct numa_topology_node {
23 struct numa_topology {
25 struct numa_topology_node nodes[];
28 struct hybrid_topology_node {
33 struct hybrid_topology {
35 struct hybrid_topology_node nodes[];
38 struct cpu_topology *cpu_topology__new(void);
39 void cpu_topology__delete(struct cpu_topology *tp);
41 struct numa_topology *numa_topology__new(void);
42 void numa_topology__delete(struct numa_topology *tp);
44 struct hybrid_topology *hybrid_topology__new(void);
45 void hybrid_topology__delete(struct hybrid_topology *tp);
47 #endif /* __PERF_CPUTOPO_H */