Home
last modified time | relevance | path

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

/linux-6.12.1/tools/power/x86/turbostat/
Dturbostat.c1515 unsigned long *pcounter; member
1540 void pmt_counter_resize_(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize_() argument
1544 …new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_()
1551 const size_t num_new_domains = new_size - pcounter->num_domains; in pmt_counter_resize_()
1553 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); in pmt_counter_resize_()
1555 pcounter->num_domains = new_size; in pmt_counter_resize_()
1556 pcounter->domains = new_mem; in pmt_counter_resize_()
1559 void pmt_counter_resize(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize() argument
1569 new_size = MAX(new_size, pcounter->num_domains * 2); in pmt_counter_resize()
1571 pmt_counter_resize_(pcounter, new_size); in pmt_counter_resize()
[all …]