aperf/mperf

Andriy Gapon avg at freebsd.org
Fri Nov 19 14:39:10 UTC 2010


I am thinking about providing two APIs for this.

1. KPI
void cpu_get_a_m_perf(u_int cpu, uint64_t *aperf, uint64_t *mperf);

2. Userland
sysctl dev.cpu.N.aperf_mperf that returns two UQUAD values.

But I am not sure where to put the code for both APIs.
Adding another device under cpu seems like an overkill.

Ideas?
Thanks!
-- 
Andriy Gapon


More information about the freebsd-current mailing list