1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
8 struct cpu_topology_map
{
13 struct cpu_cache_level
{
45 unsigned long long total_mem
;
46 unsigned int msr_pmu_type
;
50 int nr_sibling_threads
;
56 const char **cmdline_argv
;
58 char *sibling_threads
;
60 struct cpu_topology_map
*cpu
;
61 struct cpu_cache_level
*caches
;
63 struct numa_node
*numa_nodes
;
64 struct memory_node
*memory_nodes
;
65 unsigned long long memory_bsize
;
68 extern struct perf_env perf_env
;
70 void perf_env__exit(struct perf_env
*env
);
72 int perf_env__set_cmdline(struct perf_env
*env
, int argc
, const char *argv
[]);
74 int perf_env__read_cpu_topology_map(struct perf_env
*env
);
76 void cpu_cache_level__free(struct cpu_cache_level
*cache
);
78 const char *perf_env__arch(struct perf_env
*env
);
79 const char *perf_env__raw_arch(struct perf_env
*env
);
80 int perf_env__nr_cpus_avail(struct perf_env
*env
);
82 #endif /* __PERF_ENV_H */