Lines Matching refs:pmt_counter
1518 struct pmt_counter { struct
1519 struct pmt_counter *next; argument
1535 unsigned int pmt_counter_get_width(const struct pmt_counter *p) in pmt_counter_get_width() argument
1540 void pmt_counter_resize_(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize_()
1559 void pmt_counter_resize(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize()
1592 unsigned long long pmt_counter[PMT_MAX_ADDED_THREAD_COUNTERS]; member
1607 unsigned long long pmt_counter[PMT_MAX_ADDED_CORE_COUNTERS]; member
1643 unsigned long long pmt_counter[PMT_MAX_ADDED_PACKAGE_COUNTERS]; member
1794 struct pmt_counter *pmt_tp;
1795 struct pmt_counter *pmt_cp;
1796 struct pmt_counter *pmt_pp;
2209 struct pmt_counter *ppmt; in print_header()
2627 struct pmt_counter *ppmt; in format_counters()
2795 (unsigned int)t->pmt_counter[i]); in format_counters()
2797 outp += sprintf(outp, "%s0x%016llx", (printed++ ? delim : ""), t->pmt_counter[i]); in format_counters()
2802 const unsigned long value_raw = t->pmt_counter[i]; in format_counters()
2876 (unsigned int)c->pmt_counter[i]); in format_counters()
2878 outp += sprintf(outp, "%s0x%016llx", (printed++ ? delim : ""), c->pmt_counter[i]); in format_counters()
2883 const unsigned long value_raw = c->pmt_counter[i]; in format_counters()
3075 (unsigned int)p->pmt_counter[i]); in format_counters()
3077 outp += sprintf(outp, "%s0x%016llx", (printed++ ? delim : ""), p->pmt_counter[i]); in format_counters()
3082 const unsigned long value_raw = p->pmt_counter[i]; in format_counters()
3144 struct pmt_counter *ppmt; in delta_package()
3217 old->pmt_counter[i] = new->pmt_counter[i]; in delta_package()
3219 old->pmt_counter[i] = new->pmt_counter[i] - old->pmt_counter[i]; in delta_package()
3230 struct pmt_counter *ppmt; in delta_core()
3257 old->pmt_counter[i] = new->pmt_counter[i]; in delta_core()
3259 old->pmt_counter[i] = new->pmt_counter[i] - old->pmt_counter[i]; in delta_core()
3279 struct pmt_counter *ppmt; in delta_thread()
3368 old->pmt_counter[i] = new->pmt_counter[i]; in delta_thread()
3370 old->pmt_counter[i] = new->pmt_counter[i] - old->pmt_counter[i]; in delta_thread()
3481 memset(&t->pmt_counter[0], 0, ARRAY_SIZE(t->pmt_counter)); in clear_counters()
3482 memset(&c->pmt_counter[0], 0, ARRAY_SIZE(c->pmt_counter)); in clear_counters()
3483 memset(&p->pmt_counter[0], 0, ARRAY_SIZE(p->pmt_counter)); in clear_counters()
3505 struct pmt_counter *ppmt; in sum_counters()
3543 average.threads.pmt_counter[i] += t->pmt_counter[i]; in sum_counters()
3573 average.cores.pmt_counter[i] += c->pmt_counter[i]; in sum_counters()
3637 average.packages.pmt_counter[i] += p->pmt_counter[i]; in sum_counters()
3652 struct pmt_counter *ppmt; in compute_average()
3756 average.threads.pmt_counter[i] /= topo.allowed_cpus; in compute_average()
3759 average.cores.pmt_counter[i] /= topo.allowed_cores; in compute_average()
3762 average.packages.pmt_counter[i] /= topo.allowed_packages; in compute_average()
4473 unsigned long pmt_read_counter(struct pmt_counter *ppmt, unsigned int domain_id) in pmt_read_counter()
4495 struct pmt_counter *pp; in get_counters()
4531 t->pmt_counter[i] = pmt_read_counter(pp, t->cpu_id); in get_counters()
4575 c->pmt_counter[i] = pmt_read_counter(pp, c->core_id); in get_counters()
4654 p->pmt_counter[i] = pmt_read_counter(pp, p->package_id); in get_counters()
8846 struct pmt_counter *pmt_find_counter(struct pmt_counter *pcounter, const char *name) in pmt_find_counter()
8858 struct pmt_counter **pmt_get_scope_root(enum counter_scope scope) in pmt_get_scope_root()
8872 void pmt_counter_add_domain(struct pmt_counter *pcounter, unsigned long *pmmio, unsigned int domain… in pmt_counter_add_domain()
8889 struct pmt_counter *pcounter; in pmt_add_counter()
8890 struct pmt_counter **const pmt_root = pmt_get_scope_root(scope); in pmt_add_counter()