Home
last modified time | relevance | path

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

/linux/tools/power/x86/turbostat/
H A Dturbostat.c1963 unsigned long *pcounter; member
2075 void pmt_counter_resize_(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize_() argument
2079 …new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_()
2086 const size_t num_new_domains = new_size - pcounter->num_domains; in pmt_counter_resize_()
2088 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); in pmt_counter_resize_()
2090 pcounter->num_domains = new_size; in pmt_counter_resize_()
2091 pcounter->domains = new_mem; in pmt_counter_resize_()
2094 void pmt_counter_resize(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize() argument
2104 new_size = MAX(new_size, pcounter->num_domains * 2); in pmt_counter_resize()
2106 pmt_counter_resize_(pcounter, new_size); in pmt_counter_resize()
[all …]