Home
last modified time | relevance | path

Searched refs:cpu_index (Results 1 – 3 of 3) sorted by relevance

/third_party/mesa3d/src/gallium/auxiliary/hud/
Dhud_cpufreq.c55 int cpu_index; member
68 find_cfi_by_index(int cpu_index, int mode) in find_cfi_by_index() argument
73 if (cfi->cpu_index == cpu_index) in find_cfi_by_index()
124 hud_cpufreq_graph_install(struct hud_pane *pane, int cpu_index, in hud_cpufreq_graph_install() argument
134 cfi = find_cfi_by_index(cpu_index, mode); in hud_cpufreq_graph_install()
166 add_object(const char *name, const char *fn, int objmode, int cpu_index) in add_object() argument
173 cfi->cpu_index = cpu_index; in add_object()
190 int cpu_index; in hud_get_num_cpufreq() local
219 if (sscanf(dp->d_name, "cpu%d\n", &cpu_index) != 1) in hud_get_num_cpufreq()
233 add_object(dp->d_name, fn, CPUFREQ_MINIMUM, cpu_index); in hud_get_num_cpufreq()
[all …]
Dhud_cpu.c64 get_cpu_stats(unsigned cpu_index, uint64_t *busy_time, uint64_t *total_time) in get_cpu_stats() argument
71 if (cpu_index != ALL_CPUS && cpu_index >= sysInfo.dwNumberOfProcessors) { in get_cpu_stats()
101 get_cpu_stats(unsigned cpu_index, uint64_t *busy_time, uint64_t *total_time) in get_cpu_stats() argument
110 if (cpu_index == ALL_CPUS) { in get_cpu_stats()
134 int mib[] = { CTL_KERN, KERN_CP_TIME, cpu_index }; in get_cpu_stats()
140 int mib[] = { CTL_KERN, KERN_CPTIME2, cpu_index }; in get_cpu_stats()
151 if (len < (cpu_index + 1) * sizeof(cp_time)) in get_cpu_stats()
159 memcpy(cp_time, cp_times + (cpu_index * CPUSTATES), in get_cpu_stats()
176 get_cpu_stats(unsigned cpu_index, uint64_t *busy_time, uint64_t *total_time) in get_cpu_stats() argument
182 if (cpu_index == ALL_CPUS) in get_cpu_stats()
[all …]
Dhud_private.h163 void hud_cpu_graph_install(struct hud_pane *pane, unsigned cpu_index);
204 void hud_cpufreq_graph_install(struct hud_pane *pane, int cpu_index, unsigned int mode);