1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
8 struct cpu_topology_map
{
13 struct cpu_cache_level
{
39 unsigned long long total_mem
;
40 unsigned int msr_pmu_type
;
44 int nr_sibling_threads
;
49 const char **cmdline_argv
;
51 char *sibling_threads
;
53 struct cpu_topology_map
*cpu
;
54 struct cpu_cache_level
*caches
;
56 struct numa_node
*numa_nodes
;
59 extern struct perf_env perf_env
;
61 void perf_env__exit(struct perf_env
*env
);
63 int perf_env__set_cmdline(struct perf_env
*env
, int argc
, const char *argv
[]);
65 int perf_env__read_cpu_topology_map(struct perf_env
*env
);
67 void cpu_cache_level__free(struct cpu_cache_level
*cache
);
69 const char *perf_env__arch(struct perf_env
*env
);
70 #endif /* __PERF_ENV_H */