[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/arch/sparc64/sparc64
On Tue, Mar 25, 2008 at 10:24:06AM -0700, Matt Thomas wrote:
> Maybe even a uint64_t *cpu_counters in cpu_data. then evcnt cold allocate
> a slow in it for each counter. IP could alloc N counters for ipstats.
Yeah. What about something like:
size_t reserve_cpucounter(const char *id)
which returns the offset and making sure that the modification can't be
preempted? The reservation can then extend the array if necessary (on
all CPUs via crosscall).
Main Index |
Thread Index |