On Sun, Jul 30, 2006 at 06:56:55AM +1000, Peter Jeremy wrote: > On Sat, 2006-Jul-29 18:13:32 +0200, Michal Mertl wrote: > >#define PCPU_LAZY_INC(var) (++*PCPU_PTR(var)) > > I missed that. > > >and function vcnt from sys/vm/vm_meter.c > > vcnt() accumulates multiple 32-bit counters into a 32-bit result. Getting > a 64-bit result means additionally tracking overflows in each counter. But if you have per-CPU counters, there's no problem with accumulating 64-bit values in the first place. So in the above macro I don't see why 'var' can't be a pointer to a uint64_t, with relevant minor changes to vcnt() of course. Regards, Brian.Received on Sat Jul 29 2006 - 19:15:36 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC