tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Can WM_EVENT_COUNTERS be enabled default?



Hi,

On 2021/01/27 14:04, Jason Thorpe wrote:

On Jan 26, 2021, at 8:54 PM, Kengo NAKAHARA <k-nakahara%iij.ad.jp@localhost> wrote:

Ah, the stats are just incremented (not atomic ops) because they are
incremented by one CPU or protected by locks.  I will enable it as you
say.

My thinking is:

1. Probably not much interest on non-LP64 systems.
-and-
2. On non-LP64 systems, the upper/lower half can become inconsistent (pretty unlikely, but still.... :-)

Sorry, I think LP64 system which does not have atomic_64 operations.

Hmm, it should use atomic_{load,store}_relaxed(), I will fix it later.


Thanks,

--
//////////////////////////////////////////////////////////////////////
Internet Initiative Japan Inc.

Device Engineering Section,
Product Development Department,
Product Division,
Technology Unit

Kengo NAKAHARA <k-nakahara%iij.ad.jp@localhost>


Home | Main Index | Thread Index | Old Index