]>
git.ipfire.org Git - thirdparty/linux.git/blob - tools/perf/util/env.h
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
;
69 extern struct perf_env perf_env
;
71 void perf_env__exit(struct perf_env
*env
);
73 int perf_env__set_cmdline(struct perf_env
*env
, int argc
, const char *argv
[]);
75 int perf_env__read_cpu_topology_map(struct perf_env
*env
);
77 void cpu_cache_level__free(struct cpu_cache_level
*cache
);
79 const char *perf_env__arch(struct perf_env
*env
);
80 const char *perf_env__raw_arch(struct perf_env
*env
);
81 int perf_env__nr_cpus_avail(struct perf_env
*env
);
83 #endif /* __PERF_ENV_H */