pmt_counter
struct pmt_counter *pmt_find_counter(struct pmt_counter *pcounter, const char *name)
struct pmt_counter **pmt_get_scope_root(enum counter_scope scope)
void pmt_counter_add_domain(struct pmt_counter *pcounter, unsigned long *pmmio, unsigned int domain_id)
struct pmt_counter *pcounter;
struct pmt_counter **const pmt_root = pmt_get_scope_root(scope);
struct pmt_counter *next;
unsigned int pmt_counter_get_width(const struct pmt_counter *p)
void pmt_counter_resize_(struct pmt_counter *pcounter, unsigned int new_size)
void pmt_counter_resize(struct pmt_counter *pcounter, unsigned int new_size)
unsigned long long pmt_counter[PMT_MAX_ADDED_THREAD_COUNTERS];
unsigned long long pmt_counter[PMT_MAX_ADDED_CORE_COUNTERS];
unsigned long long pmt_counter[PMT_MAX_ADDED_PACKAGE_COUNTERS];
struct pmt_counter *pmt_tp;
struct pmt_counter *pmt_cp;
struct pmt_counter *pmt_pp;
struct pmt_counter *ppmt;
struct pmt_counter *ppmt;
const unsigned long value_raw = t->pmt_counter[i];
outp += print_hex_value(pmt_counter_get_width(ppmt), &printed, delim, t->pmt_counter[i]);
const unsigned long value_raw = c->pmt_counter[i];
outp += print_hex_value(pmt_counter_get_width(ppmt), &printed, delim, c->pmt_counter[i]);
const unsigned long value_raw = p->pmt_counter[i];
outp += print_hex_value(pmt_counter_get_width(ppmt), &printed, delim, p->pmt_counter[i]);
struct pmt_counter *ppmt;
old->pmt_counter[i] = new->pmt_counter[i];
old->pmt_counter[i] = new->pmt_counter[i] - old->pmt_counter[i];
struct pmt_counter *ppmt;
old->pmt_counter[i] = new->pmt_counter[i];
old->pmt_counter[i] = new->pmt_counter[i] - old->pmt_counter[i];
struct pmt_counter *ppmt;
old->pmt_counter[i] = new->pmt_counter[i];
old->pmt_counter[i] = new->pmt_counter[i] - old->pmt_counter[i];
memset(&t->pmt_counter[0], 0, ARRAY_SIZE(t->pmt_counter));
memset(&c->pmt_counter[0], 0, ARRAY_SIZE(c->pmt_counter));
memset(&p->pmt_counter[0], 0, ARRAY_SIZE(p->pmt_counter));
struct pmt_counter *ppmt;
average.threads->pmt_counter[i] += t->pmt_counter[i];
average.cores->pmt_counter[i] += c->pmt_counter[i];
average.packages->pmt_counter[i] += p->pmt_counter[i];
struct pmt_counter *ppmt;
average.threads->pmt_counter[i] /= topo.allowed_cpus;
average.cores->pmt_counter[i] /= topo.allowed_cores;
average.packages->pmt_counter[i] /= topo.allowed_packages;
unsigned long pmt_read_counter(struct pmt_counter *ppmt, unsigned int domain_id)
struct pmt_counter *pp;
t->pmt_counter[i] = pmt_read_counter(pp, t->cpu_id);
c->pmt_counter[i] = pmt_read_counter(pp, cpus[t->cpu_id].core_id);
p->pmt_counter[i] = pmt_read_counter(pp, cpus[t->cpu_id].package_id);