]> asedeno.scripts.mit.edu Git - linux.git/blob - tools/perf/util/cputopo.h
perf tools: Add cpu_topology object
[linux.git] / tools / perf / util / cputopo.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_CPUTOPO_H
3 #define __PERF_CPUTOPO_H
4
5 #include <linux/types.h>
6
7 struct cpu_topology {
8         u32       core_sib;
9         u32       thread_sib;
10         char    **core_siblings;
11         char    **thread_siblings;
12 };
13
14 struct cpu_topology *cpu_topology__new(void);
15 void cpu_topology__delete(struct cpu_topology *tp);
16
17 #endif /* __PERF_CPUTOPO_H */